-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 2.14 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
#PriorHessian
language: cpp
os: linux
git:
depth: 3
quiet: true
branches:
only:
- master
env:
global:
APT_INSTALL="sudo apt-get install -y"
matrix:
include:
#- env:
#- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
#- OPT_BLAS_INT64=On
- env:
- BLAS_INT64=On
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9 && FC=/usr/bin/gfortran-4.9"
- env:
- BLAS_INT64=Off
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9 && FC=/usr/bin/gfortran-4.9"
- env:
- BLAS_INT64=On
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && FC=/usr/bin/gfortran-7"
##Documentation build
- env: DOC=On PDFDOC=On OPT_BLAS_INT64=Off FC=gfortran
script: ./scripts/pdf-doc-build.sh -DOPT_BLAS_INT64=${OPT_BLAS_INT64}
dist: xenial #supports newer doxygen
#MATRIX_EVAL allows CC and CXX to be set before dependencies are installed
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- eval "${MATRIX_EVAL}"
install:
- if [ "${DOC}" == "On" ]; then $APT_INSTALL doxygen graphviz; fi
- if [ "${DOC}" == "On" ]; then $APT_INSTALL gfortran; fi
- if [ "${PDFDOC}" == "On" ]; then $APT_INSTALL doxygen-latex; fi
- if [ "${CXX}" == "g++-4.9" ]; then $APT_INSTALL g++-4.9 gfortran-4.9; fi
- if [ "${CXX}" == "g++-5" ]; then $APT_INSTALL g++-5 gfortran-5; fi
- if [ "${CXX}" == "g++-6" ]; then $APT_INSTALL g++-6 gfortran-6; fi
- if [ "${CXX}" == "g++-7" ]; then $APT_INSTALL g++-7 gfortran-7; fi
- if [ -z "$DOC" ]; then ./scripts/ci-numerical-dependencies/install-blas-lapack.sh; fi
- ./scripts/ci-numerical-dependencies/install-armadillo.sh
- $APT_INSTALL libboost-math-dev
- if [ -z "$DOC" ]; then ./scripts/travis-trusty-install-gtest.sh; fi
script:
- ./scripts/travis-build-test.sh -DCMAKE_Fortran_COMPILER=${FC}
deploy:
name: Docu-Bot
provider: pages
skip-cleanup: true
github-token: $GH_TRAVISCI_DOCUMENTATION_TOKEN
keep-history: true
verbosed: true
local_dir: _build/documentation/doc/html
on:
branch: master
condition: $DOC = On