forked from trikset/trikRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 1.37 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
language: cpp
compiler: gcc
env:
- CONFIG=debug VERA=true
- CONFIG=release VERA=false
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.8; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50; fi
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe"
- sudo add-apt-repository "deb http://archive.ubuntu.com/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
- sudo apt-get install vera++
- sudo apt-get install qdbus qmlscene qt5-default qt5-qmake qtbase5-dev-tools qtchooser qtdeclarative5-dev xbitmaps xterm libqt5svg5-dev qttools5-dev qtscript5-dev -y
- sudo apt-get install xvfb
- Xvfb :0 &
- export DISPLAY=:0
script:
- gcc --version
- qmake --version
- if [ "$VERA" = "true" ]; then tclsh vera++/generatePaths.tcl; fi
- if [ "$VERA" = "true" ]; then vera++ --error -p allRules --root vera++ <vera++/params; fi
- qmake trikRuntime.pro CONFIG+=$CONFIG
- make -j2
- cd ./bin
- ls -A