-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
executable file
·42 lines (33 loc) · 1021 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
language:
cpp
matrix:
fast_finish: true
include:
- os: linux
env: COMPILER=clang++-3.5
addons:
apt:
packages: ["clang++-3.5"]
sources: ['llvm-toolchain-precise-3.5', "ubuntu-toolchain-r-test"]
- os: linux
env: COMPILER=g++-5
addons:
apt:
packages: ["g++-5"]
sources: ["ubuntu-toolchain-r-test"]
before_script:
- echo "yes" | sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse"
- sudo apt-get update -qq
- sudo apt-get -qq install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
- sudo apt-get install -y emscripten
install:
- export CXX="${COMPILER}"
script:
- if [ "${CXX}" != "" ]; then (travis_wait mkdir build && cd build && cmake .. && cmake --build . && test); fi
# todo: build tests and run it
# todo: build with emcc
# after_success:
# todo: push emcc result to webhost
notifications:
email: