forked from floooh/sokol-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (44 loc) · 2.15 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
git:
depth: 1
language: c
dist: xenial
os:
- osx
- linux
- windows
addons:
apt:
packages:
- libglu1-mesa-dev
- mesa-common-dev
- xorg-dev
- libasound-dev
script:
- echo $TRAVIS_OS_NAME
- cmake --version
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then gcc --version; fi
- python fips clean
# OSX
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build osx-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build osx-make-release; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build metal-osx-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build metal-osx-make-release; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build sapp-metal-osx-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips build sapp-metal-osx-make-release; fi
# Linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python fips build linux-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python fips build linux-make-release; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python fips build sapp-linux-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python fips build sapp-linux-make-release; fi
# Windows
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build win64-vstudio-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build win64-vstudio-release; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build d3d11-win64-vstudio-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build d3d11-win64-vstudio-release; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build sapp-win64-vstudio-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips build sapp-win64-vstudio-release; fi
# run tests
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python fips set config sapp-metal-osx-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python fips set config sapp-linux-make-debug; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python fips set config sapp-win64-vstudio-debug; fi
- python fips run sokol-test