-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
67 lines (59 loc) · 2.93 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
# default is ruby, we set python in case we need to do some
# advanced scripting in our setup of the C++ tests
language: python
matrix:
include:
# ## Temporarily disable docker build, as Travis current docker version
# on Ubuntu 16.04/18.04, i.e. Docker 18.06.0-ce/1.38 breaks
# prctl(PR_SET_PDEATHSIG, SIGTERM) in silence test ...
# - os: linux
# services: docker
# env:
# docker_img=gsauthof/fedora-cxx-devel:29
# docker_flags="--cap-add=SYS_PTRACE --security-opt apparmor:unconfined"
# CMAKE_BUILD_TYPE=Debug
# python: 3.5
- os: linux
dist: focal
addons:
apt:
packages:
- gcc-multilib
- gdb
- libc6-dev-i386
- ninja-build
# this gets us clang-10 on Ubuntu 20.04
# instead of the broken /usr/local/clang-7.0.0/bin/ mess travis provides
- clang
- libc++-dev
- libc++abi-dev
env:
CMAKE_BUILD_TYPE=Release
CC=/usr/lib/llvm-10/bin/clang
CXX=/usr/lib/llvm-10/bin/clang++
CFLAGS="-O3 -Wall -Wextra -Wno-missing-field-initializers -Wno-parentheses -Wno-missing-braces -Wmissing-prototypes -Wfloat-equal -Wwrite-strings -Wpointer-arith -Wcast-align -Wnull-dereference -Werror=multichar -Werror=sizeof-pointer-memaccess -Werror=return-type -fstrict-aliasing "
CXXFLAGS="-O3 -std=gnu++17 -stdlib=libc++ -Wall -Wextra -Wno-missing-field-initializers -Wno-parentheses -Wno-missing-braces -Wno-unused-local-typedefs -Wfloat-equal -Wpointer-arith -Wcast-align -Wnull-dereference -Wnon-virtual-dtor -Wmissing-declarations -Werror=multichar -Werror=sizeof-pointer-memaccess -Werror=return-type -Werror=delete-non-virtual-dtor -fstrict-aliasing "
python: 3.6
compiler: clang
- os: linux
dist: focal
addons:
apt:
packages:
- gcc-multilib
- gdb
- libc6-dev-i386
- ninja-build
env:
CMAKE_BUILD_TYPE=Debug
CFLAGS="-Og -Wall -Wextra -Wno-missing-field-initializers -Wno-parentheses -Wno-missing-braces -Wmissing-prototypes -Wfloat-equal -Wwrite-strings -Wpointer-arith -Wcast-align -Wnull-dereference -Werror=multichar -Werror=sizeof-pointer-memaccess -Werror=return-type -fstrict-aliasing "
CXXFLAGS="-Og -std=gnu++17 -Wall -Wextra -Wno-missing-field-initializers -Wno-parentheses -Wno-missing-braces -Wno-unused-local-typedefs -Wfloat-equal -Wpointer-arith -Wcast-align -Wnull-dereference -Wnon-virtual-dtor -Wmissing-declarations -Werror=multichar -Werror=sizeof-pointer-memaccess -Werror=return-type -Werror=delete-non-virtual-dtor -fstrict-aliasing "
python: 3.6
before_install:
- ./ci/travis/"$TRAVIS_OS_NAME$tag"/before_install.sh
install:
- ./ci/travis/"$TRAVIS_OS_NAME$tag"/install.sh
before_script:
- ./ci/travis/"$TRAVIS_OS_NAME$tag"/before_script.sh
script:
- ./ci/travis/"$TRAVIS_OS_NAME$tag"/script.sh