-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
113 lines (103 loc) · 5.16 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
dist: xenial
language: cpp
env:
#install:
# - source ci/travis/install.sh
# - cd $BOOST_ROOT && ./b2 headers
addons:
apt:
packages:
- binutils-gold
- gdb
- libc6-dbg
branches:
only:
- master
- develop
- /travis-.*/
- /pr-.*/
- /rc-.*/
- /bugfix-.*/
- /hotfix-.*/
- /feature-.*/
- /optimization-.*/
- /refactoring-.*/
- /redesign-.*/
- /task-.*/
#
# Default toolsets in Ubuntu
#
# trusty xenial bionic
# 14.04 16.04 18.04
# ------ ------ ------
# clang 3.4 3.8 6.0
# gcc 4.8.2 5.3.1 7.3.0
#
anchors:
clang-38: &clang-38 { apt: { packages: [ "clang-3.8",
"libstdc++-6-dev" ], sources: [ "llvm-toolchain-xenial-3.8",
"ubuntu-toolchain-r-test" ] } }
clang-4: &clang-4 { apt: { packages: [ "clang-4.0",
"libstdc++-6-dev" ], sources: [ "llvm-toolchain-xenial-4.0",
"ubuntu-toolchain-r-test" ] } }
clang-5: &clang-5 { apt: { packages: [ "clang-5.0",
"libstdc++-7-dev" ], sources: [ "llvm-toolchain-xenial-5.0",
"ubuntu-toolchain-r-test" ] } }
clang-6: &clang-6 { apt: { packages: [ "clang-6.0",
"libc6-dbg",
"libc++-dev",
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-6.0",
"ubuntu-toolchain-r-test" ] } }
clang-7: &clang-7 { apt: { packages: [ "clang-7",
"libc6-dbg",
"libc++-dev",
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-7",
"ubuntu-toolchain-r-test" ] } }
clang-8: &clang-8 { apt: { packages: [ "clang-8",
"libc6-dbg",
"libc++-dev",
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-8",
"ubuntu-toolchain-r-test" ] } }
gcc-6: &gcc-6 { apt: { packages: [ "g++-6" ], sources: [ "ubuntu-toolchain-r-test" ] } }
gcc-7: &gcc-7 { apt: { packages: [ "g++-7" ], sources: [ "ubuntu-toolchain-r-test" ] } }
gcc-8: &gcc-8 { apt: { packages: [ "g++-8" ], sources: [ "ubuntu-toolchain-r-test" ] } }
gcc-9: &gcc-9 { apt: { packages: [ "g++-9" ], sources: [ "ubuntu-toolchain-r-test" ] } }
jobs:
allow_failures:
- env:
- COPY="all the environment settings from your job"
include:
- { os: "linux", env: [ "CXX=clang++-3.8", "CXX_STANDARD=11", CONFIG=Release ], addons: *clang-38 }
- { os: "linux", env: [ "CXX=clang++-3.8", "CXX_STANDARD=14", CONFIG=Debug ], addons: *clang-38 }
- { os: "linux", env: [ "CXX=clang++-8", "CXX_STANDARD=17", CONFIG=Debug ], addons: *clang-8 }
- { os: "linux", env: [ "CXX=g++-6", "CXX_STANDARD=11", CONFIG=Debug ], addons: *gcc-6 }
- { os: "linux", env: [ "CXX=g++-6", "CXX_STANDARD=11", CONFIG=Release ], addons: *gcc-6 }
- { os: "linux", env: [ "CXX=g++-6", "CXX_STANDARD=14", CONFIG=Debug ], addons: *gcc-6 }
- { os: "linux", env: [ "CXX=g++-6", "CXX_STANDARD=14", CONFIG=Release ], addons: *gcc-6 }
- { os: "linux", env: [ "CXX=g++-7", "CXX_STANDARD=14", CONFIG=Debug ], addons: *gcc-7 }
- { os: "linux", env: [ "CXX=g++-7", "CXX_STANDARD=17", CONFIG=Debug ], addons: *gcc-7 }
- { os: "linux", env: [ "CXX=g++-8", "CXX_STANDARD=14", CONFIG=Debug ], addons: *gcc-8 }
- { os: "linux", env: [ "CXX=g++-8", "CXX_STANDARD=20", CONFIG=Debug ], addons: *gcc-8 }
- { os: "linux", env: [ "CXX=g++-8", "CXX_STANDARD=20", CONFIG=Release ], addons: *gcc-8 }
- { os: "linux", env: [ "CXX=g++-9", "CXX_STANDARD=17", CONFIG=Debug ], addons: *gcc-9 }
- { os: "linux", env: [ "CXX=g++-9", "CXX_STANDARD=20", CONFIG=Debug ], addons: *gcc-9 }
- { os: "linux", env: [ "CXX=g++-9", "CXX_STANDARD=20", CONFIG=Release ], addons: *gcc-9 }
- os: linux
before_install:
- sudo apt-get update
- sudo apt-get -y install libperlio-gzip-perl libjson-perl locales-all
env: [ "COMMENT=codecov.io", "CC=gcc-9", "CXX=g++-9", "CXX_STANDARD=20", "GCOV=gcov-9" ]
addons: *gcc-9
script:
- pushd /tmp && git clone https://github.com/linux-test-project/lcov.git && export PATH=/tmp/lcov/bin:$PATH && which lcov && lcov --version && popd
- ci/travis/codecov_build.sh
- os: linux1
env: [ "COMMENT=ubsan", "CC=gcc-8", "CXX=g++-8", "CXX_STANDARD=14", CONFIG=Debug ]
addons: *gcc-8
script:
- ci/travis/ubsan_build.sh
notifications:
email:
false
script:
- ./ci/travis/build.sh