-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
95 lines (87 loc) · 2.64 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
osx_image: xcode10
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: "ppa:samuel-bachmann/boost"
- 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
- libboost-system1.60-dev
- libboost-iostreams1.60-dev
- libboost-thread1.60-dev
- libboost-program-options1.60-dev
- libgmp-dev
- libmpfr-dev
- zlib1g-dev
homebrew:
packages:
- qt5
- eigen
- tinyxml2
- boost
branches:
only:
- develop
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then (brew update || true) && brew uninstall --ignore-dependencies cgal; fi
# Build CGAL from source
- wget https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.11.1/CGAL-4.11.1.zip
- unzip CGAL-4.11.1.zip
- cd CGAL-4.11.1
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake .. -DWITH_CGAL_Qt5=OFF -DWITH_demos=OFF -DWITH_examples=OFF -DWITH_CGAL_ImageIO=TRUE -DCMAKE_CXX_COMPILER=g++-5 -DCMAKE_C_COMPILER=gcc-5 ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake .. -DWITH_CGAL_Qt5=OFF -DWITH_demos=OFF -DWITH_examples=OFF -DWITH_CGAL_ImageIO=TRUE -DCMAKE_PREFIX_PATH=$(brew --prefix qt) ;
fi
- make
- sudo make install
- cd ../../
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
source /opt/qt58/bin/qt58-env.sh ;
fi
- git clone -b develop --depth=1 https://github.com/cgogn/CGoGN_2
- cd CGoGN_2
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake .. -DCMAKE_CXX_COMPILER=g++-5 -DCMAKE_C_COMPILER=gcc-5 ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt) ;
fi
- make -j2
- sudo make install
- cd ../..
script:
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake ..
-DCMAKE_CXX_COMPILER=g++-5
-DCMAKE_C_COMPILER=gcc-5 ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake ..
-DCMAKE_PREFIX_PATH=$(brew --prefix qt) ;
fi
- make -j2