Added Travis Xenial to ensure build passes

pull/95/head
kaguillera 2020-05-14 16:32:11 -04:00
parent 93e3b4204e
commit 80417bead0
1 changed files with 44 additions and 27 deletions

View File

@ -1,14 +1,30 @@
services:
- mysql
os: linux
dist: xenial
language: python
python:
- '3.7'
cache:
directories:
- /home/linuxbrew/.linuxbrew
- $HOME/.local/share/renv
- $TRAVIS_BUILD_DIR/renv/library
before_install:
- sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran40/'
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
- sudo apt-get install -y r-base r-base-dev
- sudo chmod ugo+rw /usr/local/lib/R/site-library
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH
- source ~/.bashrc
- sudo apt-get install linuxbrew-wrapper
- brew install r
# - sudo chmod ugo+rw /usr/local/lib/R/site-library
- R -e 'install.packages(c( "rmarkdown"), repos = "http://cran.us.r-project.org")'
- R --version
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
@ -19,8 +35,6 @@ install:
- conda info -a
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
- conda activate test-environment
before_script:
# Install renv and library
- snakemake renv_install
- snakemake renv_init
- snakemake renv_restore
@ -40,6 +54,9 @@ notifications:
- "Execution time: *%{duration}*"
- "Message: %{message}"
cache:
directories:
- /usr/local/lib/R
branches:
except:
- master
only:
- travis_test