-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
165 lines (158 loc) · 4.04 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# using c for language overwrites our compilers
language: generic
dist: trusty
sudo: false
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-mingw-w64-i686
- build-essential
- check
- cppcheck
- gcc-multilib
- gcc-4.9
- gcc-mingw-w64-i686
- g++-4.9
- g++-multilib
- g++-mingw-w64
- libc6-dev-i386
- linux-libc-dev:i386
- mingw-w64
- valgrind
env:
- ANALYZE=false
- MINGW=true
- CC=gcc-4.9
- CXX=g++-4.9
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- check
- cppcheck
- gcc-7
- gcc-7-multilib
- g++-7
- g++-7-multilib
- linux-libc-dev:i386
- valgrind
env:
- ANALYZE=false
- CC=gcc-7
- CXX=g++-7
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- cppcheck
- clang-3.9
- valgrind
env:
- ANALYZE=false
- CC=clang-3.9
- CXX=clang++-3.9
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- cppcheck
- clang-6.0
- clang-tidy-6.0
- valgrind
env:
- ANALYZE=false
- CC=clang-6.0
- CXX=clang++-6.0
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- check
- cppcheck
- gcc-7
- gcc-7-multilib
- g++-7
- g++-7-multilib
- linux-libc-dev:i386
- valgrind
env:
- ANALYZE=true
- CC=gcc-7
- CXX=g++-7
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- cppcheck
- clang-6.0
- clang-tidy-6.0
- valgrind
env:
- ANALYZE=true
- CC=clang-6.0
- CXX=clang++-6.0
- os: osx
compiler: clang
env:
- ANALYZE=false
#addons:
# apt:
# sources:
# # see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
# packages:
# - binutils-mingw-w64-i686
# - build-essential
# - cmake
# - mingw32-gcc
# - gcc-mingw-w64-i686
# - gcc-mingw-w64
# - g++-mingw-w64
# - gcc-multilib
# - g++-multilib
# - libc6-dbg # for valgrind compilation
cache:
pip: true
apt: true
directories:
- $HOME/install
before_install:
# set paths for locally installed libs (like liburcu)
- export LOCAL_PKG=$HOME/install
- mkdir -p $LOCAL_PKG/lib
- mkdir -p $LOCAL_PKG/include
- mkdir -p $LOCAL_PKG/bin
- export LIBRARY_PATH=$LOCAL_PKG/lib:$LIBRARY_PATH
- export C_INCLUDE_PATH=$LOCAL_PKG/include:$C_INCLUDE_PATH
- export CPLUS_INCLUDE_PATH=$LOCAL_PKG/include:$CPLUS_INCLUDE_PATH
- export PKG_CONFIG_PATH=$LOCAL_PKG/lib/pkgconfig:$PKG_CONFIG_PATH
- export PATH=$LOCAL_PKG:$LOCAL_PKG/bin:$PATH
# set local path for python packages
- export PATH=$PATH:$HOME/.local/bin # linux
- export PATH=$PATH:$HOME/Library/Python #OS X
- export PATH=$PATH:$HOME/Library/Python/2.7/bin #OS X
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
script:
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_script.sh; fi
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_script.sh; fi