forked from Legrandin/pycryptodome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.21 KB
/
.travis.yml
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
language: c
dist: trusty
env:
- PYTHON_INTP="python2.4"
- PYTHON_INTP="python2.5"
- PYTHON_INTP="python2.6" CFFI=no
- PYTHON_INTP="python2.6" CFFI=yes
- PYTHON_INTP="python2.7" CFFI=no
- PYTHON_INTP="python2.7" CFFI=yes
- PYTHON_INTP="python3.2" CFFI=no
- PYTHON_INTP="python3.2" CFFI=yes
- PYTHON_INTP="python3.3" CFFI=no
- PYTHON_INTP="python3.3" CFFI=yes
- PYTHON_INTP="python3.4" CFFI=no
- PYTHON_INTP="python3.4" CFFI=yes
- PYTHON_INTP="python3.5" CFFI=no
- PYTHON_INTP="python3.5" CFFI=yes
- PYTHON_INTP="python3.6" CFFI=no
- PYTHON_INTP="python3.6" CFFI=yes
- PYTHON_INTP="pypy" CFFI=yes
branches:
except:
- /^.*-wip$/
install:
- ./travis_install.sh
script:
- export PYTHONPATH=${PWD}/custom_packages
- ${PYTHON_INTP} -c "import cffi" 2>/dev/null && echo CFFI is installed || true
- if [ x${CFFI} = "xyes" ]; then ${PYTHON_INTP} -c"import cffi"; fi
- if [ x${CFFI} != "xyes" ]; then ! ${PYTHON_INTP} -c"import cffi" 2>/dev/null; fi
- major=$(${PYTHON_INTP} -V 2>&1 | cut -f2 -d' ' | cut -f1 -d'.')
- if [ "$major" -ge 3 ]; then xflags="-bb" ; fi
- ${PYTHON_INTP} -V
- echo "Custom Python flags:" \"${xflags:-none}\"
- ${PYTHON_INTP} -tt $xflags setup.py build
- ${PYTHON_INTP} -tt $xflags setup.py test