forked from JGCRI/hector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (63 loc) · 2.12 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
# Build Hector on Travis CI
# BBL January 2017
# See https://travis-ci.org/bpbond/hector
---
dist: xenial
matrix:
include:
- language: cpp
compiler: clang
addons:
apt:
packages:
- libboost-system-dev
- libboost-filesystem-dev
# BOOSTROOT is set to look for header files in the default place
#where Ubuntu apt will install them --
#i.e. /usr/include/x86_64-linux-gnu. This is set because the
#Makefile has a `-I$(BOOSTROOT)` call. Similarly, BOOSTLIB is
#set to /usr/lib/x86_64-linux-gnu, which is where Ubuntu apt
#installs boost by default. It has to be specified in full
#because otherwise, Hector's Makefile tries to construct
#BOOSTLIB by appending `/lib` to BOOSTROOT, which will not work
#here because of the `x86_64-linux-gnu` addition.
before_script:
- "export BOOSTROOT=/usr/include/x86_64-linux-gnu/"
- "export BOOSTLIB=/usr/lib/x86_64-linux-gnu/"
branches:
only:
- master
- rc1.2
script:
- "make hector"
- "./test_hector.sh ./source/hector"
- language: cpp
compiler: gcc
addons:
apt:
packages:
- libboost-system-dev
- libboost-filesystem-dev
before_script:
- "export BOOSTROOT=/usr/include/x86_64-linux-gnu/"
- "export BOOSTLIB=/usr/lib/x86_64-linux-gnu/"
branches:
only:
- master
- rc1.2
script:
- "make hector"
- "./test_hector.sh ./source/hector"
- language: r
cache: packages
# Automatically deploy Hector documentation on the gh-pages
# branch. This is based on this guide from `pkgdown`:
# https://pkgdown.r-lib.org/reference/deploy_site_github.html
before_deploy: Rscript -e 'remotes::install_cran("pkgdown")'
deploy:
provider: script
script: Rscript -e 'pkgdown::deploy_site_github()'
skip_cleanup: true
# Don't rebuild documentation during Travis CRON jobs.
on:
condition: $TRAVIS_EVENT_TYPE != "cron"