-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
71 lines (62 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: cpp
dist: xenial
sudo: required
branches:
only:
- master
# Use matrix expansion for linux/osx
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
# libsdl2 2.0.8 for xenial https://launchpad.net/~litenstein/+archive/ubuntu/sdl2-xenial
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo add-apt-repository ppa:litenstein/sdl2-xenial -y;
sudo apt-get update -qq;
fi
install:
# install any dependencies required
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get install libsdl2-dev -y;
sdl2-config --version;
sudo apt-get install libsdl2-mixer-dev -y;
fi
- if [ $TRAVIS_OS_NAME == osx ]; then
brew update;
brew install sdl2;
brew install sdl2_mixer;
fi
# Windows
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
scripts/install_sdl.bat;
fi
script:
- chmod +x scripts/genie_gmake.sh && scripts/genie_gmake.sh
- cd build
- make config=debug
- make config=dev
- make config=release
# Explicitly include Windows job
matrix:
include:
- os: windows
env:
- MSBUILD_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
script:
- export PATH=$MSBUILD_PATH:$PATH
- scripts/genie_vs2017.bat
- cd build
## n.b. have to use double slash to use Windows style / command line option in Git Bash
- MSBuild.exe //p:Platform=Win32 //p:Configuration=Debug invaders-emulator.sln
- MSBuild.exe //p:Platform=Win32 //p:Configuration=Dev invaders-emulator.sln
- MSBuild.exe //p:Platform=Win32 //p:Configuration=Release invaders-emulator.sln
- MSBuild.exe //p:Platform=x64 //p:Configuration=Debug invaders-emulator.sln
- MSBuild.exe //p:Platform=x64 //p:Configuration=Dev invaders-emulator.sln
- MSBuild.exe //p:Platform=x64 //p:Configuration=Release invaders-emulator.sln
notifications:
email:
on_success: change # default: change
on_failure: always # default: always