https://github.com/ctlab/phantasus
Revision 42ad7140da8240590b348d8412cce03edca74f48 authored by Rita Sablina on 03 March 2018, 18:02:21 UTC, committed by Rita Sablina on 03 March 2018, 18:02:21 UTC
2 parent s a7489d6 + 533132f
Raw File
Tip revision: 42ad7140da8240590b348d8412cce03edca74f48 authored by Rita Sablina on 03 March 2018, 18:02:21 UTC
Merge branch 'r-3.4' of https://github.com/rsablina/phantasus into r-3.4
Tip revision: 42ad714
.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" == "r-3.4" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker build -t dzenkova/phantasus inst/docker/latest/ ;
    DOCKER_TAG="travis-$TRAVIS_BUILD_NUMBER" ;
    docker tag dzenkova/phantasus dzenkova/phantasus:$DOCKER_TAG ;
    docker push dzenkova/phantasus;
    fi

back to top