-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.87 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
#MexIFace
language: cpp
os: linux
git:
depth: 3
quiet: true
branches:
only:
- master
matrix:
include:
##Matlab dependent builds
#- env:
#- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
#- OPT_BLAS_INT64=On
##Documentation build
- env: DOC=On PDFDOC=On DOPT_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 sudo apt-get install -y doxygen graphviz; fi
- if [ "${DOC}" == "On" ]; then sudo apt-get install -y gfortran; fi
- if [ "${PDFDOC}" == "On" ]; then sudo apt-get install -y doxygen-latex; fi
- if [ "${CXX}" == "g++-4.9" ]; then sudo apt-get install -y g++-4.9 gfortran-4.9; fi
- if [ "${CXX}" == "g++-5" ]; then sudo apt-get install -y g++-5 gfortran-5; fi
- if [ "${CXX}" == "g++-6" ]; then sudo apt-get install -y g++-6 gfortran-6; fi
- if [ "${CXX}" == "g++-7" ]; then sudo apt-get install -y g++-7 gfortran-7; fi
- if [ -z "$DOC" ]; then INT64="${OPT_BLAS_INT64}" ./scripts/ci-numerical-dependencies/install-blas-lapack.sh; fi
- ./scripts/ci-numerical-dependencies/install-armadillo.sh
- sudo apt-get install -y 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