-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (46 loc) · 1.25 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
language: cpp
dist: xenial
sudo: required
branches:
only:
- master
# Use matrix expansion for linux/osx
os:
- linux
- osx
compiler:
- gcc
- clang
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-ttf-dev -y;
fi
- if [ $TRAVIS_OS_NAME == osx ]; then
brew update;
brew install sdl2;
brew install sdl2_ttf;
fi
script:
- ./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
- ./genie_vs2017.bat
- cd build
- MSBuild.exe //p:Configuration=Debug sdl2-tetris.vcxproj ## n.b. have to use double slash in Git Bash
- MSBuild.exe //p:Configuration=Dev sdl2-tetris.vcxproj ## n.b. have to use double slash in Git Bash
- MSBuild.exe //p:Configuration=Release sdl2-tetris.vcxproj ## n.b. have to use double slash in Git Bash
notifications:
email: false