forked from Themaister/Granite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (62 loc) · 1.74 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
language:
- cpp
- python
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
before_install:
- sudo apt-get install xorg-dev
env:
- GENERATOR="Unix Makefiles"
- PLATFORM=GLFW
- os: linux
dist: xenial
compiler: clang
env:
- GENERATOR="Unix Makefiles"
- PLATFORM=KHR_DISPLAY
- os: linux
dist: xenial
compiler: clang
env:
- GENERATOR="Unix Makefiles"
- PLATFORM=libretro
- os: windows
before_install:
- choco install python3
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
env:
- GENERATOR="Visual Studio 15 2017"
- PLATFORM=GLFW
- os: windows
before_install:
- choco install python3
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
env:
- GENERATOR="Visual Studio 15 2017 Win64"
- PLATFORM=GLFW
- os: windows
before_install:
- choco install python3
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
env:
- GENERATOR="Visual Studio 15 2017"
- PLATFORM=libretro
- os: windows
before_install:
- choco install python3
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
env:
- GENERATOR="Visual Studio 15 2017 Win64"
- PLATFORM=libretro
before_script:
- git submodule update --init
script:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then PYTHON3=$(which python); fi
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then PYTHON3=$(which python3); fi
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DGRANITE_PLATFORM=${PLATFORM} -G "${GENERATOR}" -DPYTHON_EXECUTABLE="${PYTHON3}"
- cmake --build . --config Release