-
Notifications
You must be signed in to change notification settings - Fork 1
/
neuroc_travis.yml
66 lines (55 loc) · 1.27 KB
/
neuroc_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
# 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
os:
- linux
- osx
# 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
- remove_neuroc_packages
- cat DESCRIPTION
- install_remotes_no_dep
- cat DESCRIPTION
- export PACKAGE_NAME=`package_name`
after_success:
- 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:
- R CMD INSTALL --build ${PKG_TARBALL}
# so no overwrite of linux build
- if [ "$TRAVIS_OS_NAME" == "osx" ];
then
rm -f *.tar.gz
fi
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: "${NEUROCKEY}"
file_glob: true
file: ${PACKAGE_NAME}*.t*gz
on:
tags: true
after_deploy:
- Rscript -e 'covr::coveralls(type = "all")'
# r:
# - release
# - devel
# matrix:
# allow_failures:
# - r: devel