This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
96 lines (86 loc) · 2.95 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
language: cpp
dist: focal
os:
- linux
before_script:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -q update
# Thanks, user native-api from the travis-ci forums
# https://travis-ci.community/t/clang-10-was-recently-broken-on-linux-unmet-dependencies-for-clang-10-clang-tidy-10-valgrind/11527/2
- sudo apt-get install -yq --allow-downgrades libc6=2.31-0ubuntu9.2 libc6-dev=2.31-0ubuntu9.2
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages install build-essential automake autoconf autoconf-archive libtool-bin texinfo yasm gcc-10 g++-10 clang-10 clang-format-10 clang-tidy-10 ninja-build cppcheck valgrind doxygen graphviz lcov -o Debug::pkgProblemResolver=yes
addons:
apt:
sources:
- # i386 not available
- sourceline: 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- g++-10
- clang-11
- libglm-dev
- libglew2.1
- libglew-dev
- libsdl2-2.0.0
- libsdl2-image-dev
- libsdl2-image-2.0-0
- libfmt-dev
- libsdl2-dev
- libdevil1c2
- libdevil-dev
- libcairo2
- libcairo2-dev
- libyaml-0-2
- libyaml-dev
- libpango-1.0-0
- libpango1.0-dev
- libpangocairo-1.0-0
- libflatbuffers-dev
- libflatbuffers1
- nlohmann-json3-dev
- flatbuffers-compiler-dev
- flatbuffers-compiler
- libcurlpp-dev
- libexpected-dev
- libfmt-dev
# We attempt to fix an issue with the flatc finder command
script:
- ${CXX} --version
- mkdir build && cd build
- cmake -DFLINE_BUILD_TESTS=on ${EXTRAOPTS} -DFLINE_USE_RELATIVE_PATH=on -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DFLATC_TARGET="" -DFLATBUFFERS_FLATC_EXECUTABLE="/usr/bin/flatc" ..
- make familyline-tests
- test/familyline-tests
jobs:
include:
- name: gcc
os: linux
compiler: gcc
env:
- CXX=g++-10
- EXTRAOPTS="-DFLINE_DO_CHECK_ASAN=off -DFLINE_DO_CHECK_UBSAN=off -DFLINE_SET_COVERAGE=off"
- name: clang
os: linux
compiler: clang
env:
- CXX=clang++-11
- CC=clang-11
- EXTRAOPTS="-DFLINE_DO_CHECK_ASAN=off -DFLINE_DO_CHECK_UBSAN=off -DFLINE_SET_COVERAGE=off"
- name: gcc-asan
os: linux
compiler: gcc
env:
- CXX=g++-10
- CC=gcc-10
- EXTRAOPTS="-DFLINE_DO_CHECK_ASAN=on -DFLINE_DO_CHECK_UBSAN=off -DFLINE_SET_COVERAGE=off"
- LSAN_OPTIONS="suppressions=../test/lsan.supp"
- name: gcc-ubsan
os: linux
compiler: gcc
env:
- CXX=g++-10
- CC=gcc-10
- EXTRAOPTS="-DFLINE_DO_CHECK_ASAN=off -DFLINE_DO_CHECK_UBSAN=on -DFLINE_SET_COVERAGE=off"
cache:
apt: true