forked from DGtal-team/DGtal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (76 loc) · 1.8 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
80
81
82
83
84
85
language: cpp
dist: trusty
sudo: false
# Reducing the depth when cloning using git
# https://docs.travis-ci.com/user/customizing-the-build/#git-clone-depth
git:
depth: 3
compiler:
- gcc
- clang
os:
- linux
- osx
matrix:
fast_finish: true
exclude:
- os: osx
compiler: gcc
cache: apt
secure: "Ra00iyQ+5wm7G3XfaaI40aKgfcGTigfmEd+3/TY1hYcjYnJvNOG0dekolcMDSelE8SfqLcWYnK6+vtOCmyZuUWheUhA+83Tgq/bIH6dMzSvLkJdyq2D9me4sX6zx3ct90swP7Adj8EBHmv61pH5OBeEcmNWJNIZmNQs3+1awca4="
##Deps for linux builds
addons:
apt:
sources:
- deadsnakes
- ubuntu-toolchain-r-test
packages:
- libhdf5-serial-dev
- libboost-dev
- libcairo2-dev
- libboost-system-dev
- libboost-program-options-dev
- libgmp-dev
- libgdcm2-dev
- libgraphicsmagick++1-dev
- libqglviewer-dev
- libinsighttoolkit3-dev
- libfftw3-dev
- g++-5
- ninja-build
- doxygen
- graphviz
- flex
- bison
- texlive
############
# Main rules
############
script: |
source .travis/before_global.sh &&
.travis/build_all.sh &&
.travis/check_tests.sh
jobs:
include:
- stage: "DGtalTools"
name: "Testing DGtalTools + DGtal with examples"
script: |
source .travis/before_global.sh &&
.travis/build_dgtal.sh &&
.travis/getAndCheckDGtalTools.sh
- stage: "Documentation"
name: "Building and deploying the documentation"
script: |
source .travis/before_global.sh &&
.travis/install_doxygen.sh &&
.travis/build_dgtal_doc.sh &&
.travis/checkDoxygenDocumentation.sh
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
repo: DGtal-team/doc-nightly
target-branch: master
verbose: true
local-dir: "$TRAVIS_BUILD_DIR/build/html"