source: subsurface/.travis.yml

Last change on this file was d97055d, checked in by Dirk Hohndel <dirk@…>, 7 days ago

Upgrade 3pp for android and testing

Signed-off-by: Anton Lundin <glance@…>

  • Property mode set to 100644
File size: 1.6 KB
Line 
1language: c++
2
3dist: trusty
4
5cache:
6    directories:
7        - Qt
8
9addons:
10    apt:
11        packages:
12            - git
13            - g++
14            - make
15            - autoconf
16            - automake
17            - libtool
18            - cmake
19            - pkg-config
20            - libxml2-dev
21            - libxslt1-dev
22            - libzip-dev
23            - libsqlite3-dev
24            - libusb-1.0-0-dev
25            - libssl-dev
26            - libssh2-1-dev
27            - libcurl4-openssl-dev
28            # Not a subsurface dependency, but a Qt dependency
29            - mesa-common-dev
30
31before_install:
32    - if [ ! -e Qt/5.9 ] ; then
33          rm -rf Qt ;
34          wget http://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run ;
35          chmod +x ./qt-opensource-linux-x64-5.9.0.run ;
36          ./qt-opensource-linux-x64-5.9.0.run -platform minimal --script qt-installer-noninteractive.qs --no-force-installations ;
37      fi
38      # TestPreferences uses gui calls, so run a xvfb so it has something to talk to
39    - "export DISPLAY=:99.0"
40    - "sh -e /etc/init.d/xvfb start"
41
42
43script:
44    - perl -pi -e 's/BUILDGRANTLEE=1/BUILDGRANTLEE=0/' scripts/build.sh
45    - perl -pi -e 's/BUILDMARBLE=1/BUILDMARBLE=0/' scripts/build.sh
46    - perl -pi -e 's/-DNO_PRINTING=OFF/-DNO_PRINTING=ON -DNO_MARBLE=ON -DUSE_WEBENGINE=ON/' scripts/build.sh
47    - export CMAKE_PREFIX_PATH=$PWD/Qt/5.9/gcc_64/lib/cmake ;
48      cd .. ;
49      bash -e ./subsurface/scripts/build.sh -both
50    - env CTEST_OUTPUT_ON_FAILURE=1 make -C subsurface/build check
51#    - env CTEST_OUTPUT_ON_FAILURE=1 make -C subsurface/build-mobile check
Note: See TracBrowser for help on using the repository browser.