-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
70 lines (65 loc) · 2.23 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
language: cpp
dist: bionic
compiler: gcc
install:
- sudo apt update -qq
# Boost
- sudo apt install -qq libboost-all-dev
# gdb
- sudo apt install -qq gdb
# ImageMagick
- sudo apt-get install -qq imagemagick graphviz gsfonts
- sudo apt-get install -qq gcc perl libltdl-dev libpng-dev libtiff-dev liblcms2-dev
- sudo apt-get install -qq libperl-dev libjpeg62-dev libbz2-dev libwmf-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev libexif-dev pkg-config
# cppcheck
- sudo apt install cppcheck
# Codecov
- sudo pip install codecov
# gdb
- gdb -v
# OCLint
- ./install_oclint.sh
script:
- type dot
# No GraphViz, test
- qmake boost_graph_cookbook_1/boost_graph_cookbook_1_test_no_graphviz.pro
- travis_wait 30 make --silent debug
- ./boost_graph_cookbook_1_test_no_graphviz
# No Graphviz, normal
#- qmake boost_graph_cookbook_1/boost_graph_cookbook_1_no_graphviz.pro
#- make debug
#- ./boost_graph_cookbook_1_no_graphviz
# Graphviz, test
- qmake boost_graph_cookbook_1/boost_graph_cookbook_1_test.pro
- travis_wait 30 make --silent debug
- ./boost_graph_cookbook_1_test
# Graphviz, normal
#- qmake boost_graph_cookbook_1/boost_graph_cookbook_1.pro
#- make --silent debug
#- ./boost_graph_cookbook_1
# Prepare to get code coverag
- cp debug/*.gcda boost_graph_cookbook_1 # Will this work?
- cp debug/*.gcno boost_graph_cookbook_1 # Will this work?
- cp debug/*.o boost_graph_cookbook_1 # Will this work?
- cp debug/*.gcda . # Will this work?
- cp debug/*.gcno . # Will this work?
- cp debug/*.o . # Will this work?
# Get code coverage
- ./get_code_cov.sh >/dev/null
- travis_wait 20 codecov >/dev/null
# cppcheck
- cppcheck --quiet --error-exitcode=1 .
# Call OCLint, takes to long...
# - travis_wait 60 ./do_oclint.sh
after_success:
- travis_wait 20 bash <(curl -s https://codecov.io/bash) > /dev/null
after_failure:
- pdflatex -v
- cd ~; find . | egrep "\.tex"
- cd ~; find . | egrep "\.log"
- cd /usr; find . | egrep "/texlive$"
- cd /opt; find . | egrep "/texlive$"
- cd /; find . | egrep "/texlive$"
#- which tlmgr
- echo $PATH
- cat /home/travis/build/richelbilderbeek/boost_graph_cookbook_1/boost_graph_cookbook_1/boost_graph_cookbook_1.tex