forked from g-truc/gli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (77 loc) · 1.69 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
dist: bionic
language: cpp
branches:
only:
- master
jobs:
include:
- name: "Build with LLVM/Clang 3.9"
addons:
apt:
packages:
- clang-3.9
env:
- MATRIX_EVAL="CC=clang-3.9 CXX=clang++-3.9"
- name: "Build with LLVM/Clang 7"
env:
- MATRIX_EVAL="CC=clang CXX=clang++"
- name: "Build with LLVM/Clang 9"
addons:
apt:
packages:
- clang-9
env:
- MATRIX_EVAL="CC=clang-9 CXX=clang++-9"
- name: "Build with LLVM/Clang 10"
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-10
env:
- MATRIX_EVAL="CC=clang-10 CXX=clang++-10"
- name: "Build with GCC 4.8"
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
env:
- MATRIX_EVAL="CC=gcc-4.8 CXX=g++-4.8"
- name: "Build with GCC 7.4"
env:
- MATRIX_EVAL="CC=gcc CXX=g++"
- name: "Build with GCC 9"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 CXX=g++-9"
- name: "Build with GCC 10"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-10
- g++-10
env:
- MATRIX_EVAL="CC=gcc-10 CXX=g++-10"
before_script:
- cmake --version
- eval "${MATRIX_EVAL}"
- $CC --version
- $CXX --version
script:
- mkdir ./build
- cd ./build
- cmake ..
- cmake --build .
- ctest
- cd ..