-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.travis.yml
More file actions
79 lines (79 loc) · 1.89 KB
/
.travis.yml
File metadata and controls
79 lines (79 loc) · 1.89 KB
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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: COMPILER=gcc GCC=5
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env: COMPILER=gcc GCC=6
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
- libc++-dev
env: COMPILER=clang CLANG=3.7
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
- libc++-dev
env: COMPILER=clang CLANG=3.8
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
packages:
- clang-3.9
- libc++-dev
env: COMPILER=clang CLANG=3.9
- os: osx
osx_image: xcode7.3
compiler: clang
- os: osx
osx_image: xcode8
compiler: clang
before_install:
- |
# Configure build variables
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$COMPILER" == "gcc" ]]; then
sudo apt-get install libtbb-dev;
export CXX=g++-$GCC CC=gcc-$GCC;
fi
if [[ "$COMPILER" == "clang" ]]; then
sudo apt-get install libtbb-dev;
export CXX=clang++-$CLANG CC=clang-$CLANG;
export CXXFLAGS="-stdlib=libc++";
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install tbb;
export CXX=clang++ CC=clang;
fi
install:
- cmake -DDOWNLOAD_GTEST=ON .
- make VERBOSE=1 -j2 test_zcode
- cd test
script:
- ./test_zcode