-
Notifications
You must be signed in to change notification settings - Fork 372
/
.travis.yml
40 lines (33 loc) · 1 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
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: ppa:beineri/opt-qt591-trusty
packages:
- gcc-6
- g++-6
- qt59base
- qt59tools
- qt59svg
- libboost-program-options-dev
- os: osx
compiler: clang
before_install:
- '[ "$TRAVIS_OS_NAME" != osx ] || brew update'
install:
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt'
before_script:
- '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++'
- '[[ "$TRAVIS_OS_NAME" != osx || "$CXX" != clang++ ]] || export QMAKESPEC=macx-clang'
- '[ "$TRAVIS_OS_NAME" != linux ] || source /opt/qt59/bin/qt59-env.sh'
- qmake -v
script:
- '[ "$TRAVIS_OS_NAME" != linux ] || qmake QMAKE_CXX=g++-6 glogg.pro'
- '[ "$TRAVIS_OS_NAME" != osx ] || qmake glogg.pro'
- make