summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: ce5cebefc3c69360786435260015dca1ef7da25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
stages:
    - centos6
      # - python26
    - python27
    - python34
    - pypy

.python26:
    stage: python26
    image: yarara/python-2.6.9:v1
    when: always
    script:
        - python setup.py clean build test

centos6:
    stage: centos6
    image: centos:6
    when: always
    allow_failure: yes
    script:
        - yum upgrade -y
        - yum install -y swig python-devel openssl-devel openssl python-setuptools python-twisted
        - python setup.py clean build test

python27:
    stage: python27
    image: python:2.7
    when: always
    script:
        - apt-get update -q -y
        - apt-get install -y swig libssl-dev libssl1.0.0 python-dev openssl python-twisted python-setuptools
        - python setup.py clean build test

python34:
    stage: python34
    image: python:3.4
    when: always
    allow_failure: yes
    script:
        - apt-get update -q -y
        - apt-get install -y swig libssl-dev libssl1.0.0 python3-dev openssl python3-twisted python3-setuptools
        - python3 setup.py clean build test

pypy:
    stage: pypy
    image: pypy:2
    when: always
    allow_failure: yes
    script:
        - if [ \! -f /etc/apt/sources.list.d/jessie-backports.list ] ;
          echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
          ; fi
        - apt-get update -q -y
        - apt-get install -y swig libssl-dev libssl1.0.0 pypy-dev openssl pypy-setuptools
        - easy_install Twisted
        - pypy setup.py clean build test