forked from nmwsharp/polyscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (40 loc) · 937 Bytes
/
.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
branches:
only:
- master
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
jobs:
include:
- os: windows
addons:
apt:
packages:
- xorg-dev
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y xpra xserver-xorg-video-dummy freeglut3-dev; fi
- cd test
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
script:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
make
./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock
fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
make
./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock
fi
- |
if [ "$TRAVIS_OS_NAME" = "windows" ]; then
cmake --build "."
ls
./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock
fi