-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
54 lines (48 loc) · 1.06 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
language: cpp
sudo: required
dist: xenial
branches:
only:
- master
matrix:
include:
- env: BUILD_TYPE=Release
- env: BUILD_TYPE=Debug
- os: osx
compiler: clang
before_install:
- brew update
- brew install
sdl2
sdl2_image
sdl2_mixer
sdl2_ttf
env: BUILD_TYPE=Release
addons:
apt:
packages:
- appstream
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-mixer-dev
- libsdl2-ttf-dev
before_script:
- $CXX --version
- cmake --version
- sdl2-config --version
script:
- mkdir build && cd build
- cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DENABLE_MP3=OFF
- make VERBOSE=1
- if [[ $BUILD_TYPE == Debug ]]; then
./tests/openblok_test;
fi
- if [[ $TRAVIS_OS_NAME == linux && $BUILD_TYPE == Release ]]; then
bash -e ../etc/appimage/travis.sh &&
chmod +x ~/out/OpenBlok*.AppImage &&
wget -c https://github.com/mmatyas/uploadtool/raw/master/upload.sh &&
bash ./upload.sh ~/out/OpenBlok*.AppImage;
fi