-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (36 loc) · 996 Bytes
/
.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
language: cpp
os: linux
dist: bionic
branches:
except:
- /^wip-.*$/
addons:
apt:
packages: [ 'libsdl2-dev', 'libgtk-3-dev' ]
jobs:
include:
- name: "GCC Debug"
compiler: gcc
env: BuildType=Debug
- name: "GCC Release"
compiler: gcc
env: BuildType=Release
- name: "Clang Debug"
compiler: clang
env: BuildType=Debug
- name: "Clang Release"
compiler: clang
env: BuildType=Release
before_install:
- mkdir $HOME/cmake
- wget -O $HOME/cmake/install.sh https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3-Linux-x86_64.sh
- bash $HOME/cmake/install.sh --prefix=$HOME/cmake --skip-license --exclude-subdir
- export PATH="$HOME/cmake/bin:$PATH"
- cmake --version
- env
script:
- mkdir "$TRAVIS_BUILD_DIR/build"
- cd "$TRAVIS_BUILD_DIR/build"
- cmake -DCMAKE_BUILD_TYPE="$BuildType" -DBUILD_TOOLS=ON -G "Unix Makefiles" "$TRAVIS_BUILD_DIR"
- make -l all
- ctest --output-on-failure