-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
63 lines (58 loc) · 1.42 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
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
osx_image: xcode10
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: "ppa:beineri/opt-qt58-trusty"
- sourceline: "ppa:corentinjabot/cmake-backport" #cmake 3.7.2
# for cmake 3.12 use ppa:dluxen/cmake-backports
- sourceline: "ppa:nschloe/eigen-backports" #eigen 3.3.2
packages:
- gcc-5
- g++-5
- libglu1-mesa-dev
- qt58base
- cmake
- libeigen3-dev
- libtinyxml2-dev/trusty-backports
homebrew:
packages:
- qt5
- eigen
- tinyxml2
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
source /opt/qt58/bin/qt58-env.sh ;
fi
branches:
only:
- develop
script:
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake ..
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY:BOOL=ON
-DCMAKE_CXX_COMPILER=g++-5
-DCMAKE_C_COMPILER=gcc-5
-DCGOGN_BUILD_TESTS:BOOL=ON
-DCGOGN_BUILD_EXAMPLES:BOOL=ON ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake ..
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY:BOOL=ON
-DCMAKE_PREFIX_PATH:PATH=$(brew --prefix qt)
-DCGOGN_BUILD_TESTS:BOOL=ON
-DCGOGN_BUILD_EXAMPLES:BOOL=ON ;
fi
- make -j2
- make test
- sudo make install
- sudo make uninstall