-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
53 lines (46 loc) · 1.53 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
52
# 'sudo required' will give 7,5 GB memory, but has slower startup times, as we start a VM instead of a Container
sudo: required
language: python
cache: pip
python: 3.7
jobs:
include:
- stage: lint
addons: {}
before_install: skip
install:
- pip install -U importlib-metadata
- pip install flake8 flake8-import-order planemo
- planemo --version
script:
- set -e
- planemo shed_lint --tools --ensure_metadata --urls --report_level warn --fail_level error --recursive .
- stage: test
script:
- set -e
- travis_wait 50 planemo test --galaxy_python_version "$TRAVIS_PYTHON_VERSION" --galaxy_branch "$GALAXY_RELEASE" --galaxy_source "$GALAXY_REPO" .
- stage: deploy
if: (type = push) AND (branch = master)
addons: {}
before_install: skip
install:
- pip install planemo
- planemo --version
script:
- set -e
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then
planemo shed_update --shed_target toolshed --shed_key_from_env SHED_KEY --force_repository_creation .
fi
before_install:
- export GALAXY_REPO=https://github.com/galaxyproject/galaxy
- export GALAXY_RELEASE=release_20.01
- export PLANEMO_CONDA_PREFIX="$HOME/conda"
- unset JAVA_HOME
install:
- pip install planemo
- planemo conda_init
- export PATH="$PLANEMO_CONDA_PREFIX/bin:$PATH"
- conda install -y -c conda-forge conda=4.8.2
- planemo --version
- conda --version