Revision 6b07bf273574f9d551effc0a3cdf2b0d59d39d70 authored by Alexey Sergushichev on 14 February 2018, 15:48:32 UTC, committed by Alexey Sergushichev on 14 February 2018, 15:48:32 UTC
1 parent 5716272
Raw File
.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

os:
  - linux
  - osx

bioc_required: true
bioc_packages:
  - BiocCheck

before_install:
  - 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/latest/ ;
    docker tag dzenkova/phantasus dzenkova/phantasu:travis-$TRAVIS_BUILD_NUMBER ;
    docker push dzenkova/phantasus;
    fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_BRANCH" == "develop" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker build -t dzenkova/phantasus:develop inst/docker/develop/ ;
    docker push dzenkova/phantasus:develop;
    fi

back to top