forked from cgogn/SCHNApps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (63 loc) · 1.6 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
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
install:
- 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