-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
63 lines (55 loc) · 1.47 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
packages:
- clang-5.0
- libstdc++-7-dev
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- DOXYGEN=doxygen-1.8.13
before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir build
- cd build/
- cmake ../ -DUNIT_TEST=On
- cmake --build .
- ctest --output-on-failure
- cd ../
after_success:
- |
if [[ $DOXYGEN && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/${DOXYGEN}.linux.bin.tar.gz"
wget -O - "${DOXYGEN_URL}" | tar xz -C ${TMPDIR-/tmp} ${DOXYGEN}/bin/doxygen
export PATH="${TMPDIR-/tmp}/${DOXYGEN}/bin:$PATH"
doxygen Doxyfile
fi
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
committer-from-gh: true
local-dir: html/
on:
branch: master
condition: $DOXYGEN