-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
75 lines (69 loc) · 1.82 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
language: generic
sudo: required
cache:
apt: true
matrix:
include:
- env: CXX=clang++-7 CC=clang-7
addons:
apt:
packages:
- clang-7
- g++-7 # For the standard library
- cmake
sources: &sources
- sourceline: deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main
key_url: https://%{app_host}/files/gpg/llvm-toolchain-trusty.asc
- ubuntu-toolchain-r-test
- env: CXX=clang++-6.0 CC=clang-6.0
addons:
apt:
packages:
- clang-6.0
- g++-7 # For the standard library
- cmake
sources: &sources
- ubuntu-toolchain-r-test
- env: CXX=clang++-5.0 CC=clang-5.0
addons:
apt:
packages:
- clang-5.0
- g++-7 # For the standard library
- cmake
sources: &sources
- ubuntu-toolchain-r-test
- env: CXX=g++-8 CC=gcc-8
addons:
apt:
packages:
- g++-8
- cmake
sources: &sources
- ubuntu-toolchain-r-test
- env: CXX=g++-7 CC=gcc-7
addons:
apt:
packages:
- g++-7
- cmake
sources: &sources
- ubuntu-toolchain-r-test
install:
- |
CMAKE_URL="https://cmake.org/files/v3.16/cmake-3.16.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=$(realpath cmake/bin):${PATH}
cmake --version
script:
- mkdir build && cd build
- cmake ../src
- make
- ./cpp11training
- cd ..
- cd coupling
- mkdir build && cd build
- cmake ..
- make
- ./coupled_program
- cd ..