-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
45 lines (40 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
language: c++
sudo: true
services:
- docker
matrix:
exclude:
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
include:
- os: osx
env:
osx_image: xcode9.2
before_install:
- brew install glfw freetype fontconfig glm
- brew install python3 || brew upgrade python
script:
- mkdir -p build
- cd build
- cmake .. -DPYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DBUILD_WXWIDGETS_UI=OFF -DBUILD_OPENGL_UI=ON
- make
- os: linux
env:
compiler:
- gcc
before_install:
- docker run -d --name ubuntu-test -v $(pwd):/travis ubuntu:17.10 tail -f /dev/null
- docker ps
install:
- docker exec -t ubuntu-test bash -c "apt-get update;
apt-get install -y software-properties-common python-software-properties;
apt-get install -y build-essential cmake libboost-thread-dev libboost-date-time-dev;
add-apt-repository -y ppa:ubuntu-toolchain-r/test;
apt-get update;
apt-get install -y gcc g++ cmake libglfw3-dev libglew-dev libfontconfig1-dev libfreetype6-dev python3-dev libglm-dev git"
script:
- docker exec -t ubuntu-test bash -c "cd /travis;
mkdir -p build; cd build;
sh ../run_cmake.sh &&
make"
notifications:
email: false