-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (29 loc) · 967 Bytes
/
.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: cpp
sudo: required
compiler:
- clang
- gcc
os:
- linux
- osx
cache:
apt: true
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
# /usr/bin/gcc is v4.8 by default, but newer gcc package (gcc-X prefixed) is available.
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "g++" ]]; then sudo apt-get install g++-7; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "g++" ]]; then export CXX="g++-7" CC="gcc-7"; fi
# /usr/bin/clang is v3.9 by default, and newer clang package (clang-X.Y prefixed) is available.
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "clang++" ]]; then sudo apt-get install clang-5.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" == "clang++" ]]; then export CXX="clang++-5.0" CC="clang-5.0"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
before_script:
- cd build/
- cmake --version
- cmake ..
script:
- make