Skip to content

Instantly share code, notes, and snippets.

@muschellij2
Created June 19, 2017 14:26
Show Gist options
  • Save muschellij2/a9f47a773138fef7f442a797d236faae to your computer and use it in GitHub Desktop.
Save muschellij2/a9f47a773138fef7f442a797d236faae to your computer and use it in GitHub Desktop.
ANTsRCore Check Script
source ~/.R/Makevars
export CXX=clang++
export CC=clang
cd ..
travis_wait 100 R CMD build ANTsRCore ${R_BUILD_ARGS}
PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
if [[ ${#TRAVIS_TAG} -eq 0 ]];
then
travis_wait 100 R CMD check ${R_CHECK_ARGS} "${PKG_FILE_NAME}" --no-manual;
fi # --as-cran
mydir=${PWD}
if [[ ${#TRAVIS_TAG} -gt 0 ]];
then
travis_wait 100 R CMD INSTALL --build ANTsRCore;
PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1);
if [ "$TRAVIS_OS_NAME" == "osx" ];
then
PKG_FILE_NAME=$(ls -1t *.tgz | head -n 1);
fi;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment