forked from cneben/QuickQanava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (58 loc) · 1.47 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
55
56
57
58
59
60
61
62
63
64
sudo: required
language: cpp
dist: xenial
matrix:
include:
- os: linux
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: "ppa:beineri/opt-qt-5.12.1-xenial"
packages:
- cmake
- g++-6
- qt512base
- qt512declarative
- qt512graphicaleffects
- qt512quickcontrols2
- mesa-common-dev
- os: osx
compiler: clang
before_install:
- eval "${MATRIX_EVAL}"
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake;
fi
install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90;
source /opt/qt512/bin/qt512-env.sh;
fi
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update;
brew install qt5;
fi
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew link qt5 --force;
fi
before_script:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
export PATH=$PATH:/opt/qt512/bin;
fi
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
export PATH=/usr/local/opt/qt/bin:$PATH;
fi
script:
- which qmake
- qmake --version
- g++ --version
- cmake --version
- mkdir build
- cd build
- cmake .. && make -j
notifications:
email: false