-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
106 lines (106 loc) · 3.33 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
language: python
sudo: required
dist: trusty
matrix:
include:
- python: "2.7"
env: LLVM_VER=3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-3.8
- libclang-common-3.8-dev
- libclang-3.8-dev
- llvm-3.8-dev
- liblldb-3.8-dev
- python-clang-3.8
- python: "2.7"
env: LLVM_VER=3.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-3.9
- libclang-common-3.9-dev
- libclang-3.9-dev
- llvm-3.9-dev
- liblldb-3.9-dev
- python-clang-3.9
- python: "2.7"
env: LLVM_VER=4.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-4.0
- libclang-common-4.0-dev
- libclang-4.0-dev
- llvm-4.0-dev
- liblldb-4.0-dev
- python-clang-4.0
- python: "3.5"
env: LLVM_VER=3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-3.8
- libclang-common-3.8-dev
- libclang-3.8-dev
- llvm-3.8-dev
- liblldb-3.8-dev
- python: "3.5"
env: LLVM_VER=3.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-3.9
- libclang-common-3.9-dev
- libclang-3.9-dev
- llvm-3.9-dev
- liblldb-3.9-dev
- python: "3.5"
env: LLVM_VER=4.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main'
key_url: 'http://llvm.org/apt/llvm-snapshot.gpg.key'
packages:
- clang-4.0
- libclang-common-4.0-dev
- libclang-4.0-dev
- llvm-4.0-dev
- liblldb-4.0-dev
allow_failures:
- env: LLVM_VER=3.9
- env: LLVM_VER=4.0
install:
- export LLVM_HOME=/usr/lib/llvm-$LLVM_VER
- export LD_LIBRARY_PATH=$LLVM_HOME/lib:$LD_LIBRARY_PATH
- export CC=$LLVM_HOME/bin/clang
- export CXX=$LLVM_HOME/bin/clang++
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then ln -s /usr/lib/python2.7/dist-packages/clang; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install libclang-py3; fi
- pip install pybind11
- pip install -v .
script:
- nosetests