-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
110 lines (110 loc) · 3.84 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: r
cache: packages
warnings_are_errors: false
use_bioc: true
bioc_required: true
cran: http://cran.rstudio.com
dist: trusty
addons:
apt:
packages:
- libfftw3-dev
- libgsl-dev
os:
- linux
- osx
osx_image: xcode9
r:
- release
- devel
matrix:
allow_failures:
- r: devel
env:
global:
- R_BUILD_ARGS="--no-manual"
- R_CHECK_ARGS="--as-cran --install-args=--build"
- RGL_USE_NULL=TRUE
- WARNINGS_ARE_ERRORS=1
- PROJECT_NAME=neuroconductor
- DISPLAY=:99.0
- R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
before_install:
- ulimit -n 2048
- export LD_LIBRARY_PATH=/usr/local/clang/lib:${LD_LIBRARY_PATH}
- export PROJ_DIR=`basename $PWD`
- echo "travis_wait*\.log$" >> .Rbuildignore
- fname=travis_helpers.sh
- wget -O ${fname} http://bit.ly/travis_helpers
- cat ${fname}; source ${fname}; rm ${fname}
- cat DESCRIPTION
- export ants_user=neuroconductor
- wget -O antsr_travis.sh http://bit.ly/antsr_travis_sh
- source ./antsr_travis.sh
- rm antsr_travis.sh
- cat DESCRIPTION
- start_xvfb ;
- v8_install ;
- dcmtk_install ;
- fftw_install ;
- export rver=`r_version`; echo $rver ;
- export PACKAGE_NAME=`package_name`
- export RCHECK_DIR=${PACKAGE_NAME}.Rcheck
- remove_neuroc_packages
- export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
- export _R_CHECK_FORCE_SUGGESTS_=false
- x=`export_clang_cxx`; eval ${x}
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then no_open_mp ; fi
- echo "CC=${CC}, CXX=${CXX}, CXX1X=${CXX1X}"
- echo "CXX1XSTD=${CXX1XSTD}, CXX11=${CXX11}"
- clang_cxx
- export cmake_version="3.11"
- cmake --version
- x=`cmake_setup`; echo "${x}"; eval ${x};
- cmake --version
- cat DESCRIPTION
- gsl_install ;
- imagemagick_install ;
- install_remotes_no_dep
- cat DESCRIPTION
- echo $PATH ;
- install_deps_no_suggests
- install_python_requirements ;
- R CMD javareconf ;
- travis_run_cache
script:
- x=`export_clang_cxx`; eval ${x}
- travis_wait 100 R CMD build ${R_BUILD_ARGS} .
- rm -f travis_wait*.log
- PKG_TARBALL=$(ls -1t *.tar.gz | head -n 1)
- ls
- travis_wait 100 R CMD check ${R_CHECK_ARGS} "${PKG_TARBALL}"; CHECK_RET=$? ;
- rm -f travis_wait*.log
- if [[ $CHECK_RET -ne 0 ]]; then echo "R CMD check failed"; check_fail; dump_logs;
travis_terminate 1; fi
- dump_logs ;
r_github_packages:
- r-lib/covr
after_success:
- if [[ "${TRAVIS_OS_NAME}" == "linux" && ${TRAVIS_R_VERSION_STRING} = "release" ]];
then echo 'covr::coveralls(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
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: gfpUtxtLvJ++i06jvgR3VI1L7OEZgA0d1myTTEigHov0i7fdvWUcW2GSB8wnjUJOGVTXBnfMVIUMn63X7CABpl/yj3bdVz1PwlUPEl6uIbt4sWt4d3NNXHVwRRABZ8+XktjXtE7Yp8p5xpvz2z8ysC85ThnXhaNT2VyHcRduEbGzNKwkEV0DT3jWUSrohp1CG66womigbrwHtDIkLVi0v6j2yc9UgE3MyFhFNQ/BXYkLZhqq3oaffbX5/TCrpe2B3kb2LMsAIQOUHAMtofKbODUvm8v4JEI7VkVwUd6xYeB4N0brN/VzkF3SIum4t76DaiJjemId34E+YWnP5o65+vXX0IDaUnGgor5gdd8X0ZXfIXFPIm54B+y03BFgWCoW/dz2J7bYu9RsfSt2XM21+KNmSAcdG9wf3r66Af3P+Y6LFDRqUKER8pgzNvT1yfbB9TgIOp6qH+DV/DLg8+oFw/jhYS5zLN96/5QuQbpmR3HBR+AlVmt5+6caesDRQ/r8tyYD+Bk0NpBl271uUhCs6tEEcffcl3BgzjAGzP3jv5wWvnewjrBVl7xZ6ia6Xz2G9fEAr1g5SyeJ41XEWHZvbaZw+Hxr7UrV0By3QaJ79J+ONbIiDaUELJe+ftXQkitDae5b0FH/EoImgQEzsOAAwnmhWNLDrKszufF8SLa3LWU=
file_glob: true
file: wf4ni*.t*gz
on:
tags: true
repo: neuroimaginador/wf4ni