Pull Request #560 Enterprise Backport #559: Port ampqs protocol support from travis-config
ga4gh/data-repository-service-schemas:.travis.yml@cb280a1
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
Build Config
{
"rvm": [
"2.0",
"2.1"
],
"sudo": false,
"cache": {
"directories": [
"vendor/bundle"
]
},
"addons": {
"artifacts": {
"paths": [
"log/"
]
},
"postgresql": 9.3
},
"matrix": {
"fast_finish": true
},
"script": [
"./build.sh"
],
"install": [
"bundle _1.9.0_ install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}"
],
"language": "ruby",
"services": [
"redis"
],
"before_script": [
"redis-cli config set save \"\"",
"RAILS_ENV=test bundle exec rake db:create db:migrate --trace"
],
"before_install": [
"gem install bundler -v 1.9.0"
]
}