2020-05-01 23:17:00 +02:00
|
|
|
services:
|
2020-05-14 22:32:11 +02:00
|
|
|
- mysql
|
|
|
|
|
|
|
|
os: linux
|
|
|
|
|
|
|
|
dist: xenial
|
|
|
|
|
2020-04-30 00:27:39 +02:00
|
|
|
language: python
|
|
|
|
python:
|
2020-05-14 22:32:11 +02:00
|
|
|
- '3.7'
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/linuxbrew/.linuxbrew
|
|
|
|
- $HOME/.local/share/renv
|
|
|
|
- $TRAVIS_BUILD_DIR/renv/library
|
|
|
|
|
2020-04-30 19:02:31 +02:00
|
|
|
before_install:
|
2020-05-14 22:32:11 +02:00
|
|
|
- /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
|
|
|
|
|
2020-04-30 19:02:31 +02:00
|
|
|
install:
|
2020-05-14 22:32:11 +02:00
|
|
|
- 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
|
|
|
|
- conda info -a
|
|
|
|
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
|
|
|
|
- conda activate test-environment
|
|
|
|
- snakemake renv_install
|
|
|
|
- snakemake renv_init
|
|
|
|
- snakemake renv_restore
|
2020-05-02 01:46:04 +02:00
|
|
|
|
2020-04-30 00:27:39 +02:00
|
|
|
script:
|
2020-05-14 22:32:11 +02:00
|
|
|
- cp -r tests/data/raw/* data/raw
|
|
|
|
- snakemake --profile tests/settings -R sms_features
|
|
|
|
- python -m unittest discover tests/scripts/ -v
|
2020-05-01 23:17:00 +02:00
|
|
|
|
|
|
|
notifications:
|
2020-05-01 23:41:57 +02:00
|
|
|
email: false
|
2020-05-01 23:17:00 +02:00
|
|
|
slack:
|
|
|
|
secure: cJIpmIjb3zA5AMDBo9axF1v6fYNIgMm6s6UdMNOlHiT511xHGsaLUFej3lACwQLig4Gr94ySI61YdrP+RX1lFcYxusH+kUU/c8LX0PmSKNeKnycM3w/pCM+yTp/6oQG6ZrJD7pNm6zhB0xPL61uSmYhcr+JJ1sh4iLiON+J8/C+IfnAHm1ORkxJ0IxASkiP/LvaiAQDw8lNyYIZNWjSDNZbx68o1VNakyk6Vik3x8omiE3w33rzI2/JAx//QTxOq2J0dtV1AqYYSOWS4iXblV09NLBqgGrhAhrQ6+TbPHSPIyL/4EdhvS+YXO+SBWS7ODD7j/MuL6XiA4SujW72od2rgXNmOjFnlQvIrULO5bzv39BKKDkldvz9+XCyXLcjoLIwA/rmUnwMndNoC7NoD/CkQEevUxswXXB9811BmIFx/7GOHouVxwB2gaMAzkCroZJVwgbrc6ESSOVE5SMcb3wPMbpd8cXOgVZXJcmk5wK206zxXPigCvFfknqOnwDqRgyIWSFoTd/2wHppA7ND3R5U42nQTbEQ7MiONsOo61GlJTTxJELz32sLKl388AuAgOY7+0sqPibxMaHJkF1V4nYVTH0/H5bO/edK4VHMloJ6s0kuyko7LT5EMQf3pBJij5TnYmD2E60t+bSBAxHuH7WA5dvL+igjGEwROnxDc9pc=
|
|
|
|
on_success: always
|
2020-05-01 23:41:57 +02:00
|
|
|
template:
|
|
|
|
- "Repo `%{repository_slug}` *%{result}* build (<%{build_url}|#%{build_number}>) for commit (<%{compare_url}|%{commit}>) on branch `%{branch}`."
|
|
|
|
- "Execution time: *%{duration}*"
|
|
|
|
- "Message: %{message}"
|
|
|
|
|
2020-05-14 22:32:11 +02:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
|
|
|
|
only:
|
|
|
|
- travis_test
|