-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
67 lines (57 loc) · 1.14 KB
/
.travis.yml
File metadata and controls
67 lines (57 loc) · 1.14 KB
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
# Project is written in C++ (defines some useful defaults)
language: cpp
cache: ccache
# Save time by only getting the current repository status
git:
depth: false
# Test both clang and gcc
compiler:
- gcc
- clang
# Test both linux and osx
os:
- linux
- osx
- windows
env:
- GENERATOR="Ninja"
- GENERATOR="Unix Makefiles"
# Install requirements with apt
addons:
apt:
packages:
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-ttf-dev
- libsdl2-mixer-dev
- cmake
- pkg-config
homebrew:
packages:
- sdl2
- sdl2_image
- sdl2_ttf
- sdl2_mixer
- pkg-config
- cmake
- ccache
# Build Matrix
jobs:
fast_finish: true
exclude:
- compiler: clang
env: GENERATOR="Ninja"
- os: windows
env: GENERATOR="Unix Makefiles"
allow_failures:
- os: windows
install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
before_script:
- cmake --version
- mkdir build && cd build
# Actually check if it works
script:
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_PARALLEL_LEVEL=2 -DCMAKE_VERBOSE_MAKEFILE=TRUE ..
- cmake --build .
- ctest -j2 -VV