forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (114 loc) · 4.45 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
language: python
# Build only commits on master and release tags for the "Build pushed branches" feature.
# This prevents building twice on PRs originating from our repo ("Build pushed pull requests)".
# See:
# - https://github.com/travis-ci/travis-ci/issues/1147
# - https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
branches:
only:
- master
- /v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/
cache:
- pip
- directories:
- "node_modules"
- $HOME/.cache
os:
- linux
stages:
- phase1
- phase2
- deploy
before_install:
# begin: workaround to enable support for py37:
# - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# - sudo apt-get install -y nodejs
# - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
# - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# - sudo apt-get update && sudo apt-get install yarn
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo add-apt-repository ppa:deadsnakes/ppa -y; fi
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo apt-get update; fi
# sudo required only till https://github.com/travis-ci/travis-ci/issues/9848 is fixed
# - sudo pip install -U pip setuptools twine wheel
# ^ end workaround
- nvm install $TRAVIS_NODE_VERSION
# end
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv wheel ; else python -m pip install tox tox-pyenv wheel twine; fi
notifications:
email:
jobs:
include:
- stage: phase1
script:
# package building added here purely to fail-fast if is broken
- python setup.py sdist bdist_wheel
- python -m tox
env: TOXENV=lint
python: "2.7"
language: nodejs
node_js:
- "8"
- stage: phase1
script: python -m tox
python: "2.7"
env: TOXENV=docs
- stage: phase1
script: python -m tox
python: "2.7"
env: TOXENV=py27
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r
- stage: phase2
script: python -m tox
python: "3.4"
env: TOXENV=py34
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
- stage: phase2
script: python -m tox
python: "3.5"
env: TOXENV=py35
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
- stage: phase2
script: python -m tox
python: "3.6"
env: TOXENV=py36 PYTHON='3.6' PYENV_VERSION='system'
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
- stage: phase2
script: python -m pip install -q tox-travis && python -m tox
python: "3.7"
env: TOXENV=py37 PYTHON='3.7'
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
# begin: workaround to enable support for py37: https://github.com/travis-ci/travis-ci/issues/9815
dist: xenial
sudo: required
# end
- stage: deploy
script:
- python setup.py sdist bdist_wheel
- python -m twine upload dist/*
if: tag IS present
deploy:
- provider: releases
api_key:
secure: YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
file_glob: true
file:
- dist/*
- ChangeLog
skip_cleanup: true
on:
tags: true
repo: pycontribs/jira
branch: master
env:
global:
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U="
- PIP_DISABLE_PIP_VERSION_CHECK=1
- TRAVIS_NODE_VERSION="v8.11.3"