This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
63 lines (53 loc) · 2.87 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
sudo: true
dist: trusty
language: go
os:
- linux
git:
depth: 3
env:
- QUICKBUILD=gotests
- DEPLOY_TESTS=deploytests
before_install:
- if [ -n "$DEPLOY_TESTS" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo add-apt-repository ppa:beineri/opt-qt551-trusty -y; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get update -qq; fi
install:
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get -y install gcc-5 g++-5; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get install -qq qt55base; source /opt/qt55/bin/qt55-env.sh; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get -y install binutils xpra; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get install -y gdb; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo apt-get -y install qt55base qt55quickcontrols qt55svg qt55declarative; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++; fi
- export CXX="g++-5" CC="gcc-5"
before_script:
- export COMPILER=g++-5
- if [ -n "$DEPLOY_TESTS" ]; then g++ --version; fi
- if [ -n "$DEPLOY_TESTS" ]; then wget http://ftp.de.debian.org/debian/pool/main/p/patchelf/patchelf_0.8-2_amd64.deb; fi
- if [ -n "$DEPLOY_TESTS" ]; then sudo dpkg -i patchelf_0.8-2_amd64.deb; fi
- ulimit -c unlimited -S # enable core dumps
script:
- if [ -n "$DEPLOY_TESTS" ]; then xpra start :42; fi # start the display to have it ready before needed
- export DISPLAY=:42 # for the Qml app to start
- cd src/
- go build -o linuxdeploy
- if [ -n "$QUICKBUILD" ]; then go test -v; fi
- if [ -n "$DEPLOY_TESTS" ]; then cd ../tests/TestLib; fi
- if [ -n "$DEPLOY_TESTS" ]; then qmake "CONFIG+=debug" TestLib.pro; fi
- if [ -n "$DEPLOY_TESTS" ]; then make; fi
- if [ -n "$DEPLOY_TESTS" ]; then cd ../TestApp; fi
- if [ -n "$DEPLOY_TESTS" ]; then qmake "CONFIG+=debug" TestApp.pro; fi
- if [ -n "$DEPLOY_TESTS" ]; then make; fi
- if [ -n "$DEPLOY_TESTS" ]; then cd ../../; fi
- if [ -n "$DEPLOY_TESTS" ]; then tests/deploy_and_run.sh; fi
- if [ -n "$DEPLOY_TESTS" ]; then tests/deploy_and_run_blacklist.sh; fi
after_success:
- if [ -n "$DEPLOY_TESTS" ]; then cat src/linuxdeploy.log; fi
- if [ -n "$DEPLOY_TESTS" ]; then cat src/linuxdeploy_blacklist.log; fi
after_failure:
- if [ -n "$DEPLOY_TESTS" ]; then cat src/linuxdeploy.log; fi
- if [ -n "$DEPLOY_TESTS" ]; then cat src/linuxdeploy_blacklist.log; fi
- if [ -n "$DEPLOY_TESTS" ]; then cd src/TestApp.AppDir1; fi
- if [ -n "$DEPLOY_TESTS" ]; then for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/TestApp core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; fi
- if [ -n "$DEPLOY_TESTS" ]; then cd ../TestApp.AppDir2; fi
- if [ -n "$DEPLOY_TESTS" ]; then for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/TestApp core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; fi