forked from galaxyproject/tools-iuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
python: 2.7
before_install:
- export GALAXY_REPO=https://github.com/galaxyproject/galaxy
- export GALAXY_RELEASE=release_16.04
- export CONDA_PREFIX=$HOME/conda
install:
- pip install flake8
- pip install -q click==5.1
- pip install -q planemo
- planemo conda_init --conda_prefix $CONDA_PREFIX
- export PATH=$CONDA_PREFIX/bin:$PATH
- conda install -y -q conda=3.19.3
- conda create -y -q -c bioconda --name iuc_conda numpy==1.9.2 samtools bcftools
- source activate iuc_conda
- planemo --version
- echo $TRAVIS_COMMIT_RANGE
- planemo shed_lint --report_level warn --tools --fail_level error --recursive .
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs -n1 dirname | ./filter_directories.py | sort -u > changed_repositories.list
- cat changed_repositories.list
script:
- cd $TRAVIS_BUILD_DIR && flake8 -v --exclude=.git .
- |
if [ -s changed_repositories.list ]
then
for DIR in `cat changed_repositories.list`; do planemo conda_install --conda_ensure_channels iuc,bioconda,r --conda_prefix $CONDA_PREFIX $DIR ; done
for DIR in `cat changed_repositories.list`; do planemo test --conda_dependency_resolution --conda_prefix $CONDA_PREFIX --galaxy_branch $GALAXY_RELEASE --galaxy_source $GALAXY_REPO --skip_venv $DIR || exit 1; done
export PLANEMO_TEST_RUN="True"
fi
after_success:
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$PLANEMO_TEST_RUN" == "True" ]
then
for DIR in `cat changed_repositories.list`; do planemo shed_update --shed_target testtoolshed --shed_email $SHED_EMAIL --shed_password $SHED_PASSWORD --force_repository_creation $DIR || exit 1; done
fi