-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
45 lines (38 loc) · 860 Bytes
/
.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
language: cpp
dist: xenial
os: linux
branches:
only:
- master
cache:
directories:
- $HOME/opt
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- g++-8
- boost1.68
- graphviz
before_install:
- chmod +x ${TRAVIS_BUILD_DIR}/script/install_travis_dependencies.sh
- ${TRAVIS_BUILD_DIR}/script/install_travis_dependencies.sh
- export PATH=${HOME}/opt/bin:$PATH
script:
- mkdir -p ${TRAVIS_BUILD_DIR}/build
- cd ${TRAVIS_BUILD_DIR}/build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-8 ${TRAVIS_BUILD_DIR}
- make tests -j4
- test/tests
after_success:
- cd ${TRAVIS_BUILD_DIR}/build
- make doc
deploy:
provider: pages
skip_cleanup: true
local_dir: build/doc/html
github_token: $GH_REPO_TOKEN
on:
branch: master