forked from qreal/qreal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 2.69 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
sudo: required
dist: trusty
git:
depth: 1
language: cpp
compiler: gcc
env:
- CONFIG=debug PROJECT=qreal VERA=true TESTS=true
- CONFIG=release PROJECT=qreal VERA=false TESTS=true
- CONFIG=debug PROJECT=qrealRobots VERA=false TESTS=true
- CONFIG=release PROJECT=qrealRobots VERA=false TESTS=true
- CONFIG=debug PROJECT=qrealBP VERA=false TESTS=true
- CONFIG=release PROJECT=qrealBP VERA=false TESTS=true
- CONFIG=debug PROJECT=qrealTest VERA=false TESTS="./exampleTests-d && ./qrgui_unittests-d && ./qrrepo_unittests-d && ./qrutils_unittests-d && ./visualDebugSupport_unittests-d && ./qrtext_unittests-d && ./generationRulesTool_unittests-d"
- CONFIG=release PROJECT=qrealTest VERA=false TESTS="./exampleTests && ./qrgui_unittests && ./qrrepo_unittests && ./qrutils_unittests && ./visualDebugSupport_unittests && ./qrtext_unittests && ./generationRulesTool_unittests"
- CONFIG=debug PROJECT=qrealRobotsTest VERA=false TESTS="./robots_kitBase_unittests-d && ./robots_interpreterCore_unittests-d && ./robots_twoDModel_unittests-d && ./run-simulator-tests.sh"
before_install:
- if [ "$TESTS" != "true" ]; then pip install --user codecov; fi
install:
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get update -qq; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.9 -y; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50; fi
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 10C56D0DE9977759
- sudo add-apt-repository "deb http://ppa.launchpad.net/beineri/opt-qt551-trusty/ubuntu trusty main"
- sudo add-apt-repository ppa:smspillaz/verapp-latest -y
- sudo apt-get update
- sudo apt-get install libboost-system-dev libboost-wave-dev tcl -y
- sudo apt-get install vera++ -y
- sudo apt-get -f install libpango-1.0-0 qt55base qt55svg qt55script libgl1-mesa-dev libusb-1.0.0-dev -y
- . /opt/qt55/bin/qt55-env.sh
- sudo apt-get install xvfb -y
- Xvfb :0 &
- export DISPLAY=:0
script:
- gcc --version
- qmake --version
- if [ "$VERA" = "true" ]; then tclsh buildScripts/vera++/generatePaths.tcl; fi
- if [ "$VERA" = "true" ]; then vera++ --error -p allRules --root buildScripts/vera++ <buildScripts/vera++/params; fi
- qmake $PROJECT.pro CONFIG+=$CONFIG
- make -j2
- cd ./bin/$CONFIG
- ls -A
- sh -c "$TESTS"
notifications:
email:
recipients:
after_success:
- if [ "$TESTS" != "true" ]; then codecov; fi