-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.21 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
# This is the project file for the automated build system travis (travis-ci.com).
matrix:
include:
- name: "Linux Meson"
os: linux
sudo: false
dist: trusty
env: BUILD=meson
- name: "Linux CMake"
os: linux
sudo: false
dist: trusty
env: BUILD=cmake
- name: "macOS Meson"
os: osx
env: BUILD=meson
- name: "macOS CMake"
os: osx
env: BUILD=cmake
language: c
compiler: gcc
addons:
apt:
packages:
- libgl1-mesa-dev
- libglew-dev
- libhidapi-dev
- libsdl2-dev
- ninja-build
homebrew:
packages:
- glew
- hidapi
- sdl2
- ninja
update: true
install:
- if [[ "$BUILD" == "meson" && "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o ninja.zip;
unzip ninja.zip;
pyenv global system 3.6;
fi
- if [[ "$BUILD" == "meson" ]]; then pip3 install meson; fi
before_script:
- export PATH="$PWD:$PATH"
script:
- mkdir build && cd build
- if [[ "$BUILD" == "meson" ]]; then
meson .. . -Dexamples=simple,opengl;
else
cmake -G Ninja .. -DOPENHMD_EXAMPLE_SDL=1;
fi && ninja