-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
executable file
·76 lines (68 loc) · 1.44 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
65
66
67
68
69
70
71
72
73
74
75
76
language: cpp
cache: apt
# cache:
# directories:
# - $HOME/Library/Caches/Homebrew
# - /usr/local/opt/[email protected]/
# - /opt/qt57/
os:
- linux
#- osx
dist: trusty
group: edge
env:
- QT=qt57
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
branches:
only:
- 'master'
# before_install:
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
if [ "$QT" = "qt57" ]; then
sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y && sudo apt-get update;
fi;
else
brew update;
fi;
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
if [ "$QT" = "qt57" ]; then
sudo apt-get install -y qt57base qt57charts-no-lgpl dh-make;
fi;
else
brew install [email protected] gdb
&& chmod -R 755 /usr/local/opt/[email protected]/*;
fi;
before_script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export DISPLAY=:99.0
&& sh -e /etc/init.d/xvfb start;
fi;
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
source /opt/qt57/bin/qt57-env.sh;
else
QTDIR="/usr/local/opt/[email protected]/"
&& PATH="${QTDIR}/bin:$PATH"
&& LDFLAGS=-L${QTDIR}/lib
&& CPPFLAGS=-I${QTDIR}/include;
fi;
- qmake -v
- g++ -v
- qmake master.pro -r
- make -j4
- cd tst
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
make all;
else
make all clang=1;
fi;