-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1.15 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
language: r
cache: packages
before_install:
# Fix rJava error, from https://travis-ci.community/t/cannot-connect-to-java-from-r/9754/8
- sudo $(which R) CMD javareconf
# ImageMagick
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y libmagick++-dev; fi
# Rmpfr
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt install -qq libmpfr-dev; fi
# Java
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R CMD javareconf; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R --quiet -e 'install.packages("rJava", type="source", repos="http://cran.us.r-project.org")'; fi
before_script:
- Rscript -e "beastier::install_beast2()"
script:
# Delete all previous results
- rm result.png
# Go!
- travis_wait 60 Rscript example_7.R
# Check if all files are created
- if [ ! -f result.png ]; then echo "file 'result.png' not found" ; exit 1 ; fi
after_failure:
# Download thesis
- wget https://www.rug.nl/research/portal/files/132028374/Complete_thesis.pdf
after_success:
# Download thesis
- wget https://www.rug.nl/research/portal/files/132028374/Complete_thesis.pdf