Skip to content

Commit 030e364

Browse files
committed
CI: Add basic Travis-CI configuration
1 parent 9ffe8da commit 030e364

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: python
2+
dist: xenial
3+
sudo: false
4+
5+
git:
6+
depth: false
7+
quiet: true
8+
9+
addons:
10+
apt:
11+
packages:
12+
- cmake
13+
- libegl1-mesa-dev
14+
- libjson-glib-dev
15+
- libxkbcommon-dev
16+
- ninja-build
17+
18+
python:
19+
- "3.7"
20+
21+
env:
22+
matrix:
23+
- BUILD_TYPE=Debug BUILD_DOCS=OFF
24+
- BUILD_TYPE=Release BUILD_DOCS=ON
25+
26+
cache:
27+
- ccache
28+
- pip
29+
30+
install: |-
31+
: 'Install HotDoc if needed'
32+
if [[ ${BUILD_DOCS} = ON ]] ; then
33+
pip install HotDoc
34+
fi
35+
36+
script: |-
37+
: 'Build'
38+
set -e
39+
mkdir _build && cd $_
40+
cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_DOCS=${BUILD_DOCS}
41+
TERM=dumb cmake --build . --parallel $(nproc)

0 commit comments

Comments
 (0)