rapids/.travis.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-30 23:21:45 +02:00
services:
- mysql
2020-04-30 00:27:39 +02:00
language: python
python:
- "3.7"
2020-04-30 19:02:31 +02:00
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
2020-05-01 21:28:14 +02:00
# - sudo apt-get update
- sudo apt-get install -y r-base r-base-dev
2020-04-30 22:55:48 +02:00
- sudo chmod ugo+rw /usr/local/lib/R/site-library
- R -e 'install.packages(c( "rmarkdown"), repos = "http://cran.us.r-project.org")'
2020-04-30 21:59:27 +02:00
2020-04-30 19:02:31 +02:00
install:
2020-04-30 00:27:39 +02:00
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
2020-04-30 18:30:07 +02:00
- source "$HOME/miniconda/etc/profile.d/conda.sh"
2020-04-30 00:27:39 +02:00
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
2020-04-30 19:02:31 +02:00
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
2020-04-30 00:27:39 +02:00
- conda activate test-environment
2020-04-30 23:21:45 +02:00
before_script:
# Install Packrat
- snakemake packrat_install
- snakemake packrat_init
- snakemake packrat_restore
2020-04-30 00:27:39 +02:00
script:
- cp -r tests/data/raw/* data/raw
2020-05-01 16:28:12 +02:00
- snakemake --profile tests/settings -R sms_features
2020-04-30 23:44:51 +02:00
- python -m unittest discover tests/scripts/ -v