-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (65 loc) · 1.84 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: cpp
compiler: gcc
dist: trusty
before_install:
- echo $TRAVIS_BRANCH
# C++14
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
# R
- sudo add-apt-repository -y ppa:marutter/rrutter
- sudo apt-get update -qq
install:
# Qt5
- sudo apt-get install -qq libqt5webkit5-dev qtdeclarative5-dev
- export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
# Qt5 SVG
- sudo apt-get install libqt5svg5-dev
# C++14
- sudo apt-get install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
# gcov
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
# Codecov
- sudo pip install codecov
# OCLint
- ./install_oclint
# Boost
addons:
apt:
packages: libboost-all-dev
# Start virtual X server, from https://docs.travis-ci.com/user/gui-and-headless-browsers/
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- ./download_other_githubs
# Build Triangle
- cd ../Triangle
- qmake
- make
- cd ..
- cd TestTriangle
- ln -s ../Triangle/ToolTriangleConsole
# Console
- qmake -qt=qt5 ToolTestTriangleConsole.pro
- make debug
- ./ToolTestTriangleConsole --wkt "POLYGON((1 1,-1 1,-1 -1,1 -1))" --triangle_area 1.0 --triangle_quality 1.0 --verbose
# Desktop
- qmake -qt=qt5 ToolTestTriangleDesktop.pro
- make debug
- ./ToolTestTriangleDesktop &
- sleep 10
- sudo killall ToolTestTriangleDesktop
###############################################
# Code coverage
###############################################
- ./get_code_cov >/dev/null
- codecov >/dev/null
###############################################
# OCLint
###############################################
- ./do_oclint
after_success:
- bash <(curl -s https://codecov.io/bash)