forked from guillaumechereau/goxel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (41 loc) · 1.22 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
# Travis configuration for automatic build
language: c++
matrix:
include:
# gcc disabled until I find a way to do something equivalent to
# Wno-incompatible-pointer-types-discards-qualifiers with gcc 4.8
# - os: linux
# sudo: required
# dist: trusty
# compiler: gcc
- os: linux
sudo: required
dist: xenial
compiler: clang
- os: osx
osx_image: xcode10.1
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update;
sudo apt-get install -y libgtk-3-dev mesa-common-dev libgl1-mesa-dev;
sudo apt-get install -y scons;
wget https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
unzip glfw-3.2.1.zip;
cd glfw-3.2.1;
cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON;
make;
sudo make install;
cd ..;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make release || travis_terminate 1;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd osx/goxel;
xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO || travis_terminate 1;
cd ../..;
fi