forked from benlau/asyncfuture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (38 loc) · 1.42 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
language : cpp
dist: trusty
env:
- TARGET_NAME="Qt 5.7" TARGET_PACKAGE="qt.57.gcc_64"
- TARGET_NAME="Qt 5.10" TARGET_PACKAGE="qt.qt5.5101.gcc_64"
addons:
apt:
packages:
- valgrind
- jq
compiler:
- gcc
before_install:
- export GOPATH=`pwd`/gosrc
- export PATH=`pwd`/gosrc/bin:$PATH
- go get qpm.io/qpm
- sh -e /etc/init.d/xvfb start
script:
- echo $TARGET_NAME
- qpm check
- VERSION=$(jq .version.label qpm.json)
- VERSION=$(eval echo $VERSION)
- ulimit -c unlimited
- ulimit -a
- if ! head -n 1 asyncfuture.h | grep -q $VERSION; then echo "Version string mismatched"; exit -1 ;fi
- git clone https://github.com/benlau/qtci.git
- export QT_CI_PACKAGES=${TARGET_PACKAGE}
- source qtci/path.env
- wget -q https://download.qt.io/archive/online_installers/3.0/qt-unified-linux-x64-3.0.2-online.run
- extract-qt-installer qt-unified-linux-x64-3.0.2-online.run `pwd`/Qt
- QT_HOME=$PWD/`find Qt -name gcc_64`
- export PATH=${QT_HOME}/bin:$PATH
- mkdir build/
- cd build
- run-unittests ../tests/asyncfutureunittests/asyncfutureunittests.pro
- ls
- if test -f coredump; then gdb -ex "where \n ; thread apply all bt" asyncfutureunittests coredump ; fi
- valgrind --num-callers=30 --leak-check=full --track-origins=yes --gen-suppressions=all --error-exitcode=1 --suppressions=../tests/asyncfutureunittests/asyncfuture.supp ./asyncfutureunittests