-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (73 loc) · 2.03 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
72
73
74
75
76
77
78
language: cpp
dist: bionic
compiler:
- gcc
# - clang
install:
- sudo apt update -qq
# Boost
- sudo apt install -qq libboost-all-dev
# Qt5
- sudo apt-get install -qq qt5-qmake qt5-default
# SFML
- sudo apt-get install libsfml-dev
# cppcheck
- sudo apt-get install -qq cppcheck
# Codecov
- sudo pip install codecov
# OCLint
- ./install_oclint
# For the virtual X server
- sudo apt-get install libxrandr-dev
# valgrind, for helgrind and memcheck
- sudo apt-get install -qq valgrind
# SLOCcount
- sudo apt-get install sloccount
# Check dead links
#- sudo apt-get install -qq npm
#- npm config set strict-ssl false
#- sudo npm install -g markdown-link-check
services:
- xvfb
- alsa
script:
# Game logic non-SFML tests
- qmake AminoAcidFighterTest.pro
- make --silent debug
- ./AminoAcidFighterTest
# Game logic SFML tests
- qmake AminoAcidFighterSfmlTest.pro
- make --silent debug
# Cannot run this test, do not know why
# - ./AminoAcidFighterSfmlTest
# Build and run profile run
- qmake AminoAcidFighter.pro
- make --silent release
- time ./AminoAcidFighter --profile --no_music
- gprof AminoAcidFighter > gprof.log
- head gprof.log -n 100
# cppcheck
- cppcheck --error-exitcode=1 .
# Get code coverage
- ./get_code_cov >/dev/null
- codecov >/dev/null
# Call OCLint
- ./do_oclint || true
# memcheck
- valgrind --leak-check=full -v --show-reachable=yes --log-file=memcheck.log ./AminoAcidFighterTest
- cat memcheck.log
## Check dead links
#- rm .travis.yml
#- ./scripts/check_dead_links || true
# SLOCcount
# remove OCLint otherwise it will be counted as well
- rm -rf oclint-0.10.3
- cd ..; sloccount --overhead 1 --personcost 22614 AminoAcidFighter; cd AminoAcidFighter
after_success:
# Codecov
- bash <(curl -s https://codecov.io/bash)
# Download thesis
- wget https://www.rug.nl/research/portal/files/132028374/Complete_thesis.pdf
after_failure:
# Download thesis
- wget https://www.rug.nl/research/portal/files/132028374/Complete_thesis.pdf