multiGSEA
multiGSEA copied to clipboard
Configure travis to use docker container
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