forked from SCIInstitute/Seg3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (49 loc) · 1.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
sudo: required
language: c++
dist: trusty
git:
depth: 5
compiler:
- gcc
- clang
#before_cache:
cache:
directories:
- $HOME/deps
- $TRAVIS_BUILD_DIR/bin/Externals/Download
before_install:
# set up dependency cache
- if [ ! -d $HOME/deps ]; then mkdir $HOME/deps; fi
- if [ ! -f $HOME/deps/cmake3.tgz ]; then wget --quiet --directory-prefix=$HOME/deps http://www.sci.utah.edu/devbuilds/seg3d/cmake3.tgz; fi
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
# TODO: build (hopefully) temporarily headless
#- sudo add-apt-repository --yes ppa:beineri/opt-qt59-trusty
- sudo apt-get -qq --yes update
# Qt 5 packages currently not whitelisted needed for GUI build
#- sudo apt-get -qq --yes install ninja-build mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils-extra libglapi-mesa
# qt5-default qttools5-dev-tools qtbase5-dev-tools libqt5core5a libqt5widgets5 libqt5opengl5-dev libqt5svg5-dev
# packages for headless build
- sudo apt-get -qq --yes install ninja-build mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils-extra libglapi-mesa
install:
# C++11 support required
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
#before_script:
script:
- tar xzf $HOME/deps/cmake3.tgz
- cd bin
#- $TRAVIS_BUILD_DIR/cmake3/bin/cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DQt5_PATH:PATH=/usr ../Superbuild
- $TRAVIS_BUILD_DIR/cmake3/bin/cmake -GNinja -DTRAVIS_BUILD:BOOL=ON ../Superbuild
- travis_wait 70 ninja
#after_failure:
after_success:
- cd Seg3D
- ninja test
#after_script: