-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
50 lines (45 loc) · 1.46 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
r: bioc-release
cache: packages
warnings_are_errors: false
use_bioc: true
bioc_required: true
cran: http://cran.rstudio.com
bioc_packages:
- graph
- Rgraphviz
os:
- linux
- osx
osx_image: xcode9.4
r:
- release
- devel
matrix:
allow_failures:
- r: devel
env:
global:
- R_BUILD_ARGS="--no-manual"
- R_CHECK_ARGS="--as-cran --install-args=--build"
#before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
#deploy:
# provider: script
# script: Rscript -e 'pkgdown::deploy_site_github()'
# skip_cleanup: true
r_github_packages:
- r-lib/covr
after_success:
- if [[ "${TRAVIS_OS_NAME}" == "linux" && ${TRAVIS_R_VERSION_STRING} = "release" ]];
then echo 'covr::codecov(type = "all", quiet = FALSE)' > neuroc_covr.R ; travis_wait
100 Rscript neuroc_covr.R ; rm neuroc_covr.R ; fi
before_deploy:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then PKG_TARBALL=$(ls -1t *.tgz | head -n 1);
PKG_TARBALL_WITH_R=`echo $PKG_TARBALL | sed 's/.tgz/_'"R${rver}"'.tgz/'` ; mv ${PKG_TARBALL}
${PKG_TARBALL_WITH_R} ; echo "Built tarball is ${PKG_TARBALL_WITH_R}" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then PKG_TARBALL=$(ls -1t *.tar.gz | head -n
1); PKG_TARBALL_WITH_R=`echo $PKG_TARBALL | sed 's/.tar.gz/_'"R${rver}"'.tar.gz/'`
; mv ${PKG_TARBALL} ${PKG_TARBALL_WITH_R} ; echo "Built tarball is ${PKG_TARBALL_WITH_R}"
; fi
- if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then rm -f *.tar.gz; fi