Revision bc3f225ce88fe6137237e5f248b11f1daaf3dd1e authored by Alexey Sergushichev on 07 August 2018, 12:34:59 UTC, committed by Alexey Sergushichev on 07 August 2018, 12:34:59 UTC
1 parent 9f7b6d4
.travis.yml
language: r
r:
#- bioc-devel
- bioc-release
# warnings_are_errors: true
sudo: false
cache: packages
services:
- docker
addons:
apt:
packages:
- libprotobuf-dev
- libapparmor-dev
- protobuf-compiler
- libcurl4-openssl-dev
r_packages:
- covr
- data.table
- ggplot2
- testthat
- knitr
- rmarkdown
- httpuv
- opencpu
- protolite
- Rook
os:
- linux
- osx
bioc_required: true
bioc_packages:
- BiocCheck
- GEOquery
- limma
- rhdf5
- BiocStyle
before_install:
- if [ ${TRAVIS_OS_NAME} = 'osx' ]; then brew unlink python; brew install protobuf; fi
- R -e 'install.packages("devtools")'
- R -e 'source("https://bioconductor.org/biocLite.R"); biocLite()'
script:
- R CMD build .
- FILE=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "$FILE"
- bash inst/test_js.sh
after_script:
- FILE=$(ls -1t *.tar.gz | head -n 1)
- Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")"
after_success:
- Rscript -e 'covr::codecov()'
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t dzenkova/phantasus inst/docker/ ;
DOCKER_TAG="travis-$TRAVIS_BUILD_NUMBER" ;
docker tag dzenkova/phantasus dzenkova/phantasus:$DOCKER_TAG ;
docker push dzenkova/phantasus;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_BRANCH" == "develop" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build --build-arg TARGET_BRANCH=develop -t dzenkova/phantasus:develop inst/docker/ ;
docker push dzenkova/phantasus:develop;
fi

Computing file changes ...