multiGSEA icon indicating copy to clipboard operation
multiGSEA copied to clipboard

Configure travis to use docker container

Open lianos opened this issue 5 years ago • 0 comments

Travis takes a super long time to build the environment to run the tests.

Let's take inspiration from Dirk's patch to the tilledb-r .travis.yml file and configure it to use a docker image that has all the base bioc stuff already in there.

It looks like this:

# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

os: linux
dist: bionic
sudo: required
services: docker

env:
  global:
    - DOCKER_CNTR="tiledb/ci-r"
      DOCKER_OPTS="--rm -ti -v $(pwd):/mnt -w /mnt"
      R_BLD_OPTS="--no-build-vignettes --no-manual"
      R_CHK_OPTS="--no-vignettes --no-manual"

before_install:
  - docker pull ${DOCKER_CNTR}
  - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} r -p -e 'sessionInfo()'

install:
  - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD build ${R_BLD_OPTS} .

script:
  - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD check ${R_CHK_OPTS} tiledb_*.tar.gz

notifications:
  email:
    on_success: change
    on_failure: change

lianos avatar Jan 07 '20 23:01 lianos