-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (33 loc) · 1.02 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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libqt5webkit5-dev
- qtdeclarative5-dev
- libmpfr-dev
env:
- SET_COMPILER="export CC=gcc-5 && export CXX=g++-5"
- SET_QMAKE="export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake"
before_script:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
- eval "${SET_QMAKE}"
- os: osx
osx_image: xcode8
env:
- SET_COMPILER="brew update && brew install gcc && export CC=gcc-8 && export CXX=g++-8"
- SET_QMAKE="brew install qt && export QMAKE=/usr/local/opt/qt/bin/qmake"
- SET_QMAKE_COMPILERS="export QMAKE_CC=${CC} && export QMAKE_CXX=${CXX}"
before_script:
- eval "${SET_COMPILER}"
- eval "${SET_QMAKE}"
- eval "${SET_QMAKE_COMPILERS}"
- eval "${CXX} --version"
script:
- $QMAKE -r P4.pro
- make