forked from jdwor/lesiontools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
118 lines (118 loc) · 4.39 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
111
112
113
114
115
116
117
118
language: r
sudo: false
cache: packages
warnings_are_errors: true
use_bioc: true
bioc_required: true
cran: http://cran.rstudio.com
dist: trusty
addons:
apt:
packages:
- libfftw3-dev
- libgsl0-dev
- libgsl0ldbl
os:
- linux
- osx
osx_image: xcode9
r:
- 3.2
- 3.3
- 3.4
- 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-devel
- DISPLAY=:99.0
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
- start_xvfb ;
- export rver=`r_version`;
- export PACKAGE_NAME=`package_name`
- export RCHECK_DIR=${PACKAGE_NAME}.Rcheck
- remove_neuroc_packages
- export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
- 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
- export ants_user=neuroconductor-devel
- echo "Installing Missing Deps ITKR"
- install_missing_remote_deps ${ants_user}/ITKR
- gh_binary_install ${ants_user}/ITKR ;
- if [[ "${PACKAGE_NAME}" == "ITKR" || "${PACKAGE_NAME}" == "ANTsRCore" || "${PACKAGE_NAME}"
== "ANTsR" ]]; then export R_BUILD_ARGS="${R_BUILD_ARGS} --no-build-vignettes "
; fi
- if [[ "${PACKAGE_NAME}" != "ITKR" ]]; then echo "Installing Missing Deps ANTsRCore"
; install_missing_remote_deps ${ants_user}/ANTsRCore; gh_binary_install_passive
${ants_user}/ANTsRCore ; fi
- if [[ "${PACKAGE_NAME}" != "ANTsRCore" && "${PACKAGE_NAME}" != "ITKR" ]]; then echo
"Installing Missing Deps ANTsR" ; install_missing_remote_deps ${ants_user}/ANTsR
; gh_binary_install_passive ${ants_user}/ANTsR ; fi
- if [[ "${PACKAGE_NAME}" == "ANTsR" ]]; then export _R_CHECK_FORCE_SUGGESTS_=0 ;
fi
- cat DESCRIPTION
- install_remotes_no_dep
- cat DESCRIPTION
- echo $PATH ;
- install_deps_no_suggests
- install_python_requirements ;
- 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
- check_warnings
after_success:
- dump_logs
after_failure:
- dump_logs
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
file_glob: true
file: "${PACKAGE_NAME}*.t*gz"
on:
tags: true
api-key:
secure: OtyRcwa/4330vSKKCNXCukHQbySsPjQixbOrkJFg0MzEwcJoYruPtf0evErU81lQL5CDuD8vbBvYBtLmnzVpxhF8KrsDLTzCaul37tSFeI3T0oPleXLj+y7iKjhumsI2fbemhDzuiTmyhuBH8PFzdFWukdlzxRohK+H61DwybFTbwT5cDzEaiMEyd0ucc94/jVDNbOLDoxysxzPDnxP5tmz3db+tnzJ4z5m1wBGOp99cIXGi+gWsNmNXQYqf7AAtBHF5fWWLJE/+3jYIjCLdy3Zof2c79BeIskWVF8ouF6GE3hWVjZ71PzxgJZsVG4t4S+FBFQe1NFg69iZ3vbYyaG1DWoOYGX4FwihSjCexz6DFlfRe0cvnEbsLtomybgny7GPYCOv/NWKdCQ9WMtN+mLARupvp2zIaKsNAlk40nPn8u4v3x1T4Zp0u2j8IpmTWpXLPSYvmnu/f/PwGaxB9EayCThEy94w7HHMxaU52BV/Qqj8kTMHl+pcB2y/YKwjvEUr6iXOSihfLMa4ua1lLFdoj9Dxm8gpBGESx4JJyct7kZYUXzsptKFnWygoLsskuYa/4XUn6GZ7ie4zfDPN2FZ6jyExwudKdmTGwhcaMNah2mdUIWz04sTtv5TDmQ4EhHynBemyD5xDUdFs5zZjabgCg2e5fHHTgPpP2FDMcKUY=
after_deploy:
- if [[ "${PACKAGE_NAME}" != "ANTsR" && "${PACKAGE_NAME}" != "ITKR" && "${PACKAGE_NAME}"
!= "ANTsRCore" ]]; then if [[ "${TRAVIS_R_VERSION_STRING}" = "release" ]]; then
Rscript -e 'covr::coveralls(type = "all", quiet = FALSE)' ; fi fi