forked from ValyriaTear/ValyriaTear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (39 loc) · 1.18 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
dist: trusty
sudo: required
language: cpp
compiler:
- gcc
- clang
cache: apt
git:
submodules: false
before_install:
# Add SDL2 support
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
- sudo apt-get update -qq
- sudo apt-get install -qq cppcheck freeglut3-dev
- sudo apt-get install -qq libopenal-dev libalut-dev libvorbis-dev libogg-dev
- sudo apt-get install -qq liblua5.1-0-dev libgettextpo-dev libboost-all-dev
- sudo apt-get install -qq libqt4-opengl-dev
- sudo apt-get install -qq libglew-dev
- sudo apt-get install -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
install:
# Clang is not system wide. This is a workaround.
- $CC --version
- which $CC
- export CC=`which $CC`
script:
# Force the update of the submodule manually
- git submodule update --init --recursive --force --remote
- cmake -DCMAKE_CXX_COMPILER=$(which $CXX) -DDEBUG_FEATURES=ON .
- make translations
- make -j2 valyriatear
after_script:
- cppcheck --verbose --enable=all --quiet `git ls-files src/\*.h src/\*.cpp`
- tools/encoding-tests.sh src/*
notifications:
email:
recipients:
on_success: change
on_failure: always