-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (39 loc) · 1.07 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
os:
- linux
language:
- cpp
compiler:
- g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- python-yaml
- g++-4.8
- libc6-i386
install:
- sudo ln -sf /usr/bin/gcc-4.8 /usr/bin/gcc
- sudo ln -sf /usr/bin/g++-4.8 /usr/bin/g++
- sudo pip install cpp-coveralls
- sudo add-apt-repository --yes ppa:beineri/opt-qt551
- sudo apt-get update -qq
- travis_retry sudo apt-get install -qq qt-latest
script:
- QTDIR="/opt/qt55"
- PATH="$QTDIR/bin:$PATH"
- qt55-env.sh
- qmake -v
- qmake QNeat.pro CONFIG+=debug "QT += testlib"
- g++ --version
- make
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- ./QNeat
after_success:
- cd src
- exclude_regexs=('.*/moc_.*' '.*\.moc$' '.*_automoc\..*' '.*/ui_.*' '.*/qrc_.*' '.*CMake.*' '.*/tests/.*')
- arguments=()
- for regex in "${exclude_regexs[@]}"; do arguments+=(--exclude-pattern "$regex"); done
- coveralls --gcov /usr/bin/gcov-4.8 "${arguments[@]}"