forked from emoon/minifb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (65 loc) · 1.38 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
72
language: cpp
jobs:
include:
- os: linux
dist: bionic
name: "Linux X11"
addons:
apt:
packages:
- libx11-dev
- os: linux
dist: bionic
name: "Linux Wayland"
addons:
apt:
packages:
- libwayland-dev
env:
- USE_WAYLAND=ON
- os: osx
name: "MacOS X Cocoa"
- os: osx
name: "MacOS X Metal"
env:
- USE_METAL_API=ON
- os: osx
name: "MacOS iOS"
env:
- USE_IOS=ON
- os: windows
name: "Windows Visual Studio"
env:
- USE_WINDOWS=ON
script:
- mkdir build
- cd build
- echo off
- echo "---------"
- echo "Config..."
- echo "---------"
- if [ $TRAVIS_OS_NAME = 'osx' ]; then
if test -n "${USE_IOS}"; then
cmake .. -G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 ;
elif test -n "${USE_METAL_API}"; then
cmake .. -USE_METAL_API=ON;
else
cmake ..;
fi
elif [ $TRAVIS_OS_NAME = 'linux' ]; then
if test -n "${USE_WAYLAND}"; then
cmake .. -DUSE_WAYLAND=ON;
else
cmake ..;
fi
else
cmake ..;
fi
- echo "--------"
- echo "Build..."
- echo "--------"
- if test -n "${USE_IOS}"; then
cmake --build . --target minifb ;
else
cmake --build . ;
fi