-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
85 lines (74 loc) · 1.74 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
# Neuroconductor Template no ANTs
language: r
sudo: false
cache: packages
warnings_are_errors: true
use_bioc: true
bioc_required: true
cran: http://cran.rstudio.com
addons:
apt:
packages:
- libfftw3-dev
- libgsl0-dev
- libgsl0ldbl
os:
- linux
- osx
osx_image: xcode9
dist: trusty
env:
global:
- RGL_USE_NULL=TRUE
- PROJECT_NAME=neuroconductor
- DISPLAY=:99.0
r_check_args: --as-cran
# r_check_args: "--as-cran --install-args=--build"
before_install:
- export PROJ_DIR=`basename $PWD`
- fname=travis_helpers.sh
- wget -O ${fname} http://bit.ly/travis_helpers
- cat ${fname}; source ${fname}; rm ${fname}
- cat DESCRIPTION
- start_xvfb ;
- no_open_mp ;
- Rscript -e 'source("https://install-github.me/mangothecat/callr")'
- remove_neuroc_packages
- cat DESCRIPTION
- install_remotes_no_dep
- cat DESCRIPTION
- export PACKAGE_NAME=`package_name`
- if [[ "${PACKAGE_NAME}" == "waveslim" ]];
then
fftw_install ;
fi
- if [[ "${PACKAGE_NAME}" == "dti" ]];
then
gsl_install ;
fi
after_success:
# travis_wait 100 Rscript -e 'covr::coveralls(type = "all")' ;
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]];
then
Rscript -e 'covr::coveralls(type = "all")' ;
fi
- cat ${PACKAGE_NAME}.Rcheck/00install.out
- cat ${PACKAGE_NAME}.Rcheck/00check.log
after_failure:
- cat ${PACKAGE_NAME}.Rcheck/00install.out
- cat ${PACKAGE_NAME}.Rcheck/00check.log
# need this explicitly
# for naming convention
before_deploy:
- travis_wait 100 R CMD INSTALL --build ${PKG_TARBALL}
# so no overwrite of linux build
- if [[ "${TRAVIS_OS_NAME}" = "osx" ]];
then
rm -f *.tar.gz;
fi
# r:
# - release
# - devel
# matrix:
# allow_failures:
# - r: devel