forked from xyzz/acquisition
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
42 lines (37 loc) · 1.05 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
notifications:
email: false
language: cpp
sudo: required
dist: trusty
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=g++-4.9
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.6
packages:
- g++-4.9
- clang-3.6
env: COMPILER=clang++-3.6
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt591-trusty
- sudo apt-get update -qq
install:
- sudo apt-get install qt59base qt59webengine valgrind
script:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
- . /opt/qt59/bin/qt59-env.sh
- qmake QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_CXXFLAGS+="-g" QMAKE_CFLAGS+="-g" QMAKE_LINK=g++-4.9 CONFIG+=nowebengine
- make -j2
- valgrind --run-libc-freeres=no ./acquisition --test -platform offscreen