-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.01 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
dist: trusty
language: cpp
os:
- linux
before_install:
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
pip install --user cpp-coveralls
fi
install:
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
lsb_release -a
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-add-repository -y ppa:beineri/opt-qt562-trusty
sudo apt-get -qq update
sudo apt-get -qq install g++-4.8 libc6-i386 qt56tools qt56svg qt56script lcov
export CXX="g++-4.8"
export CC="gcc-4.8"
fi
script:
# Setup environment.
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
QTDIR="/opt/qt56"
PATH="$QTDIR/bin:$PATH"
qt56-env.sh
fi
# Build.
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON ..
- make
- CTEST_OUTPUT_ON_FAILURE=1 make test
after_success:
- coveralls --root .. --build-root . -e tests/ -E .*googletest.* -E .*glog.* -E .*CMakeFiles.* -E .+/moc_.* -E .+/mocs_.* -E .+/qrc_.* -E .+/qxt.* -E .+/ui_.* > coveralls.log