rapids/.travis.yml

36 lines
954 B
YAML
Raw Normal View History

2020-04-30 00:27:39 +02:00
language: python
python:
- "3.7"
before_script:
# Install Packrat
- snakemake packrat_install
- snakemake packrat_init
- snakemake packrat_restore
install:
2020-04-30 18:51:55 +02:00
- sudo apt-get install -y r-base
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
# Replace dep1 dep2 ... with your dependencies
2020-04-30 18:51:55 +02:00
2020-04-30 00:27:39 +02:00
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
- conda activate test-environment
2020-04-30 18:56:15 +02:00
r_binary_packages:
- rmarkdown
2020-04-30 00:27:39 +02:00
services:
- mysql
script:
- cp -r tests/data/raw/* data/raw
- snakemake --profile tests/settings -R sensor_features
- ./env/bin/python -m unittest discover tests/scripts/ -v