-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
30 lines (27 loc) · 1.01 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
language: cpp
compiler:
- gcc
- clang
env:
- TARGET=cpp
- PYVERSION=2.6.9
- PYVERSION=2.7.8
- PYVERSION=3.2.6
- PYVERSION=3.3.6
- PYVERSION=3.4.3
before_install:
# contains mostly new versions of gcc
- echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
# this one contains python 2.6.9
- if [ "$PYVERSION" = "2.6.9" ]; then sudo add-apt-repository ppa:fkrull/deadsnakes -y ; fi
- sudo apt-get update -qq
- sudo apt-get install -qq
install:
- echo "== Install step =="
script:
- if [ "$TARGET" = "cpp" ]; then sh travis/build_cpp.sh ; fi
- if [ ! "$TARGET" = "cpp" ]; then cd pybindings ; fi
- if [ ! "$TARGET" = "cpp" ] && [ "$PYVERSION" = "2.6.9" ]; then source ../travis/prepare_py26.sh ; fi
- if [ ! "$TARGET" = "cpp" ] && [ ! "$PYVERSION" = "2.6.9" ]; then source ../travis/prepare_py.sh ; fi
- if [ ! "$TARGET" = "cpp" ]; then sh ../travis/build_python.sh ; fi
- if [ ! "$TARGET" = "cpp" ]; then sh ../travis/build_and_test_sdist.sh ; fi