forked from bgruening/galaxytools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (46 loc) · 2.23 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
41
42
43
44
45
46
47
48
49
50
51
sudo: false
language: python
python: 2.7
# This is a big repository so break Travis CI work into 2 CI jobs.
env:
- CHUNK=0
- CHUNK=1
before_install:
- export GALAXY_REPO=https://github.com/galaxyproject/galaxy
- export GALAXY_RELEASE=release_17.01
- export PLANEMO_CONDA_PREFIX="$HOME/conda"
- unset JAVA_HOME
install:
- pip install flake8 flake8-import-order planemo
- planemo conda_init
- export PATH="$PLANEMO_CONDA_PREFIX/bin:$PATH"
- conda create -y -q -c bioconda --name iuc_conda samtools=0.1.19 bcftools
- . activate iuc_conda
- planemo --version
- conda --version
- git diff --quiet "$TRAVIS_COMMIT_RANGE" -- ; GIT_DIFF_EXIT_CODE=$?
- |
if [ "$GIT_DIFF_EXIT_CODE" -gt 1 ] ; then
git remote set-branches --add origin master;
git fetch;
TRAVIS_COMMIT_RANGE=origin/master...;
fi
- echo $TRAVIS_COMMIT_RANGE
- |
planemo ci_find_repos --exclude_from .tt_blacklist \
--exclude packages --exclude data_managers \
--changed_in_commit_range "$TRAVIS_COMMIT_RANGE" \
--chunk_count 2 --chunk "${CHUNK}" \
--output changed_repositories_chunk.list
- cat changed_repositories_chunk.list
script:
- set -e
- while read -r DIR; do planemo shed_lint --tools --ensure_metadata --urls --report_level warn --fail_level error --recursive "$DIR"; done < changed_repositories_chunk.list
- while read -r DIR; do planemo conda_install "$DIR"; done < changed_repositories_chunk.list
- while read -r DIR; do planemo test --conda_dependency_resolution --galaxy_branch "$GALAXY_RELEASE" --galaxy_source "$GALAXY_REPO" "$DIR"; done < changed_repositories_chunk.list
after_success:
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then
while read -r DIR; do planemo shed_update --shed_target testtoolshed --shed_email "$SHED_EMAIL" --shed_password "$SHED_PASSWORD" --force_repository_creation "$DIR" || exit 1; done < changed_repositories_chunk.list
while read -r DIR; do planemo shed_update --shed_target toolshed --shed_email "$SHED_EMAIL" --shed_password "$SHED_PASSWORD" --force_repository_creation "$DIR" || exit 1; done < changed_repositories_chunk.list
fi