-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (77 loc) · 1.91 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
language: c++
# We use APT to get our packages.
matrix:
include:
# GCC 4.9
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- git
- cmake
- gcc-4.9
- g++-4.9
env:
- MATRIX_EVAL="export CC=$(which gcc-4.9) && export CXX=$(which g++-4.9)"
# GCC 5 - default version for ubuntu 16.04 LTS
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- git
- cmake
- gcc-5
- g++-5
env:
- MATRIX_EVAL="export CC=$(which gcc-5) && export CXX=$(which g++-5)"
# GCC 7 - default version for ubuntu 18.04 LTS
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- git
- cmake
- gcc-7
- g++-7
env:
- MATRIX_EVAL="export CC=$(which gcc-7) && export CXX=$(which g++-7)"
- os: osx
osx_image: xcode9.4
language: generic
addons:
homebrew:
packages:
- git
- cmake
env:
- MATRIX_EVAL="export CC=$(which clang) && export CXX=$(which clang++)"
before_install:
# Set the C and C++ compilers
- eval "${MATRIX_EVAL}"
- echo " CC = ${CC} $(${CC} -dumpversion)"
- echo " CXX = ${CXX} $(${CXX} -dumpversion)"
# Install libaatm.
install:
- mkdir -p build
- cd build
- cmake -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX="${HOME}/libaatm" ..
- make
- make install
# Run tests
script:
- make test