41 lines
1015 B
YAML
41 lines
1015 B
YAML
language: python
|
|
python:
|
|
- "3.7"
|
|
|
|
services:
|
|
- mysql
|
|
|
|
before_install:
|
|
- sudo apt-get install -y r-base
|
|
|
|
r_binary_packages:
|
|
- rmarkdown
|
|
|
|
repos:
|
|
CRAN: https://cran.us.r-project.org
|
|
|
|
install:
|
|
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
|
|
- bash miniconda.sh -b -p $HOME/miniconda
|
|
- source "$HOME/miniconda/etc/profile.d/conda.sh"
|
|
- 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
|
|
|
|
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
|
|
- conda activate test-environment
|
|
|
|
before_script:
|
|
# Install Packrat
|
|
- R -e "packrat::install"
|
|
- R -e "packrat::init"
|
|
- R -e "packrat::restore"
|
|
|
|
script:
|
|
- cp -r tests/data/raw/* data/raw
|
|
- snakemake --profile tests/settings -R sensor_features
|
|
- ./env/bin/python -m unittest discover tests/scripts/ -v |