-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
79 lines (70 loc) · 1.72 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
79
sudo: required
dist: bionic
language: cpp
compiler:
- gcc
os: linux
addons:
apt:
packages:
# Required libraries
- libcairo2-dev
- libpango1.0-dev
- libglib2.0-dev
- libimlib2-dev
- libxinerama-dev
- libx11-dev
- libxdamage-dev
- libxcomposite-dev
- libxrender-dev
- libxrandr-dev
- libxsettings-client-dev
- libxsettings-dev
- librsvg2-dev
- libstartup-notification0-dev
- libcurl4-openssl-dev
# For more detailed AddressSanitizer reports
- binutils
# For running some tests
- xvfb
- xauth
# For Coveralls integration
- lcov
- curl
# For documentation build
- pandoc
before_install:
# cpp-coveralls
- pip install --user cpp-coveralls
before_script:
- mkdir "${TRAVIS_BUILD_DIR}/build"
- cd "${TRAVIS_BUILD_DIR}/build"
- cmake "${TRAVIS_BUILD_DIR}" -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON
script:
# Verify tint3 builds and passes tests
- cd "${TRAVIS_BUILD_DIR}/build"
- make all test
# Verify the installation script works, then clean up
- sudo make install DESTDIR=/opt/tint3 && sudo rm -rf /opt/tint3
after_success:
# Upload coverage data to Coveralls
- >-
coveralls
--root "${TRAVIS_BUILD_DIR}"
--build-root "${TRAVIS_BUILD_DIR}/build"
--exclude build/abseil-cpp
--exclude build/generated
--exclude build/CMakeFiles
--exclude abseil-cpp
--exclude external_includes
--exclude test
--exclude-pattern '.*_test\.cc$'
--exclude-lines-pattern '.*_test\.cc$'
--gcov-options '\-lp'
notifications:
irc:
channels:
- "chat.freenode.net#tint3"
on_success: change
on_failure: always
use_notice: true