https://github.com/galaxyproject/tools-iuc
Revision bae46994595ea61a1bcfc2d07a62f18b33daae33 authored by Eric Rasche on 23 March 2017, 15:59:59 UTC, committed by Eric Rasche on 23 March 2017, 15:59:59 UTC
1 parent cd904d7
Raw File
Tip revision: bae46994595ea61a1bcfc2d07a62f18b33daae33 authored by Eric Rasche on 23 March 2017, 15:59:59 UTC
small changes
Tip revision: bae4699
.travis.yml
# 'sudo required' will give os 7,5 GB memory, but has slower startup times, as we start a VM instead of a Container
sudo: required
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
  - cd "$TRAVIS_BUILD_DIR" && flake8 --exclude=.git .
  - 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 travis_wait 40 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
back to top