forked from DGtal-team/DGtal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (87 loc) · 2.13 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
86
87
88
89
90
91
92
93
94
95
96
97
98
language: cpp
dist: xenial
# 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
osx_image: xcode12
cache:
apt: true
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
##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
homebrew:
packages:
- eigen
- ninja
before_cache:
- if [ ${TRAVIS_OS_NAME} = osx ]; then brew cleanup; fi
# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- if [ ${TRAVIS_OS_NAME} = osx ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
############
# Main rules
############
script: |
source .travis/before_global.sh &&
.travis/build_all.sh &&
.travis/check_tests.sh
jobs:
fast_finish: true
exclude:
- os: osx
compiler: gcc
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
token: $GITHUB_TOKEN
skip_cleanup: true
keep_history: true
repo: DGtal-team/doc-nightly
target_branch: master
verbose: true
local_dir: "$TRAVIS_BUILD_DIR/build/html"