forked from ga4gh/data-repository-service-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (80 loc) · 3.16 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
dist: trusty
language: python
python:
- '2.7'
- '3.6'
# Specifying `branches.only = ['master']` can cause tagged builds to
# not deploy. See travis-ci/travis-ci#2498 and travis-ci/travis-ci#1675.
# We can fix this by only build master and branches/tags that follow the
# format x.y.z. and also feature/issue-<num>, the latter is the style
# used by HubFlow
branches:
only:
- master
- develop
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
- /^feature\/issue-\d+(-\S*)?$/
- "/^release\\/\\d+\\.\\d+(\\.\\d+)?$/"
- "/^release\\/(drs-)?\\d+\\.\\d+(\\.\\d+)?$/"
stages:
- linting
# - test
# The deploy stage only has `deploy` actions which will only run on commits to master
# (and not pull requests). That said, we still explicitly skip this stage because
# if we don't, Travis will only stop execution once the build stage has already been
# set up. If we skip the deploy stage for pull requests at the stage level, we can
# shave off a couple minutes of runtime.
- name: deploy
if: type != pull_request && branch = "master"
jobs:
include:
# If the linting stage fails, then none of the other stages will run.
- stage: linting
python: '3.6'
script:
# Travis will install requirements.txt by default
- flake8 --select=E121,E123,E126,E226,E24,E704,W503,W504 --ignore=E501 app.py tests
# the build process from James Eddy adapted from the WES repo
- stage: build_pages
language: java
jdk: oraclejdk8
before_install:
- chmod +x gradlew
- chmod +x scripts/fetchpages.sh
- chmod +x scripts/stagepages.sh
script:
- "./scripts/fetchpages.sh"
- "./gradlew installSwagger buildSwagger asciidoctor"
- "./scripts/stagepages.sh"
before_deploy:
- "mv misc/.gitignore .gitignore"
deploy:
provider: pages
skip_cleanup: true
keep_history: true
github-token: $GITHUB_TOKEN
on:
all_branches: true
# Deploy to PyPI on every tagged commit
- stage: deploy
python: '3.6'
script: ignore
before_install: ignore
deploy:
- provider: pypi
on:
tags: true
branch: master
python: '3.6'
repo: ga4gh/data-repository-service-schemas
user: david4096
password:
secure: LlQn8ZBAb5ekujHnoDrmzrmXaM6TpyzByNHPH4FTbbdnJ8lkDPb/ZhYvdmqrOvXPQg81/IoYKlIvP7fY9kc3oGUJ2IXhcPFqiw8njsRE5Qaebp+YppQO7C3IWGlHoZtXNtC608ZSA4x0oneNeNy+Y8KYnqKbmOlbuvrYRlNYfe9/8z7yLPH8wdmp0GyvbViedr3p7PXhtQVUKAgPpgjffZnSA7P/Y6AdkvjHHv2xMAzWP/QmOFWZNxUXjg0miR0K7eGFeGBNMM/+QsVXrGOu/TCtPtJ4JXyD86nzrZUbsOluyAblxwGlrv05se5ImVhR210OC5zvSW2902y/lxCw5uek+xg4/tcSA1ckshxLeu02GfDygCktMUtqtKVIZ+qvU7H4dEQ6Jnz9yBvZW5M6V94Ew3wBFy0RB5I9k3MMQY21FdynIUEZzBgJbOChCbmlIDT1varBHvWBiwg8EwPOVuJt1CsOoptJxUsoJND4tAOPIvXMNI17qGJ+VWAVMVNn7cVUuhEeGXwQF4urrkFBA7WIYOp6O9R8Ipg6WnQdxVdnqb3NsEc19SRdFXQ82SYibKfIZxjpdmYVgKzTYsJGMhfG6fTw9D4JABhggfgShsnByrFtbbkn/9g64jXDOjwPLeRXwXYZe6ZV6M69PDWdo0o326Qq/OHBG5eU7z2plNI=
before_install:
- python setup.py sdist
- pip install dist/ga4gh_drs_schemas-*.tar.gz
- npm install -g swagger2openapi
script:
- make schemas
#- nosetests python/
- ga4gh_drs_client