forked from trikset/trikRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (37 loc) · 1.6 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
language: cpp
compiler: gcc
env:
- CONFIG=debug VERA=true SUFFIX=-d
- CONFIG=release VERA=false SUFFIX=
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 tests
- qmake -r CONFIG+=$CONFIG tests.pro
- make -j2
- cd minimalCppApp
- qmake -r CONFIG+=$CONFIG minimalCppApp.pro
- make -j2
- cd ../../bin/x86-$CONFIG
- ls -A
- sh -c "./trikScriptRunnerTests-x86$SUFFIX"