forked from scalableprototyping/chip8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (67 loc) · 2 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
addons:
apt:
packages:
- cmake
# SFML build dependencies
- libpthread-stubs0-dev
- libgl1-mesa-dev
- libx11-dev
- libx11-xcb-dev
- libxcb-image0-dev
- libxrandr-dev
- libxcb-randr0-dev
- libudev-dev
- libfreetype6-dev
- libglew-dev
- libjpeg8-dev
- libgpgme11-dev
- libsndfile1-dev
- libopenal-dev
- libjpeg62
before_install:
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
install:
# C++17
- sudo apt-get install -qq g++-8 gcc-8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-8 90
# Include What You Use
- sudo apt-get install -qq -y iwyu
# SFML
- sudo apt-get install libsfml-dev
- sudo apt-get install pulseaudio
# Coveralls
- pip install --user cpp-coveralls
before_script:
# Open a X screen. Required for testing SFML display.
- export DISPLAY=:99
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24
- sleep 3
script:
- mkdir build && cd build
- cmake .. -DBUILD_TESTS=TRUE -DCOVERAGE=TRUE -DCMAKE_BUILD_TYPE=Debug
- make
- ./chip8_cpp_tests
after_success:
# Coveralls
- gcov --version
- pip show cpp-coveralls
- coveralls --root ..
--exclude src/main.cpp
--exclude depends
--exclude test
--exclude assets
--exclude cmake
--exclude docs
--exclude build/CMakeFiles/3.12.4
--exclude build/CMakeFiles/feature_tests.c
--exclude build/CMakeFiles/feature_tests.cxx
matrix:
include:
- name: "Ubuntu"
os: linux
dist: xenial
compiler: gcc