This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (39 loc) · 1.41 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
#########################
# project configuration #
#########################
# C++ project
language: cpp
os: linux
dist: bionic
################
# build matrix #
################
jobs:
include:
- os: linux
compiler:
- gcc
before_install:
# As for now Travis CI contains old build tools.
# And as we have C++20 here we must install everything ourselves
- wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- sudo add-apt-repository 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main'
- sudo apt-get -q update
- sudo apt-get -y install g++-10 clang-11 libboost-all-dev doctest-dev python3-pip python3-setuptools
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-10 10
- pip3 install --upgrade pip
- pip3 install --user cpp-coveralls cmake
- export CXX="/usr/bin/g++-10"
- PATH="$PATH:~/.local/bin"
################
# build script #
################
script:
- CMAKE_OPTIONS+="-DCMAKE_BUILD_TYPE=Release"
- mkdir -p build && cd build
- cmake .. ${CMAKE_OPTIONS} && cmake --build ./
- ctest -VV -j
after_success:
- cd ../ && cpp-coveralls --exclude test --exclude build/CMakeFiles