2015-06-01 15:02:55 +01:00
|
|
|
# General set up
|
2014-03-23 21:29:27 +00:00
|
|
|
language: cpp
|
2015-06-01 15:02:55 +01:00
|
|
|
cache: apt
|
|
|
|
|
|
|
|
# Build matrix set up
|
2014-03-23 21:29:27 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-06-01 15:02:55 +01:00
|
|
|
# - clang
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
# - osx
|
|
|
|
env:
|
2016-01-06 07:47:31 +00:00
|
|
|
- QT_VERSION=5.4.2
|
2016-05-15 20:50:26 +01:00
|
|
|
- QT_VERSION=5.5.1
|
2017-01-02 15:15:40 +00:00
|
|
|
- QT_VERSION=5.6.2
|
2015-06-01 15:02:55 +01:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
# only use clang on OS X
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
2016-01-06 07:47:31 +00:00
|
|
|
# only use the qt available from homebrew
|
|
|
|
- os: osx
|
|
|
|
env: QT_VERSION=5.4.2
|
|
|
|
- os: osx
|
|
|
|
env: QT_VERSION=5.5.1
|
2016-05-15 20:50:26 +01:00
|
|
|
- os: osx
|
|
|
|
env: QT_VERSION=5.6
|
2015-08-20 11:16:36 +01:00
|
|
|
|
2015-06-01 15:02:55 +01:00
|
|
|
# Install dependencies
|
2014-03-23 21:29:27 +00:00
|
|
|
install:
|
2015-06-01 15:02:55 +01:00
|
|
|
- source travis/prepare.sh # installs qt and cmake. need to source because some env vars are set from there
|
|
|
|
|
|
|
|
# Actual work
|
2014-03-23 21:29:27 +00:00
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2015-06-01 15:02:55 +01:00
|
|
|
- cmake -DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH ..
|
2014-03-23 21:29:27 +00:00
|
|
|
script:
|
2015-05-28 18:38:29 +01:00
|
|
|
- make -j4 && make test ARGS="-V"
|