-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
89 lines (78 loc) · 2.67 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
dist: xenial
language: python
env:
global:
- PYTEST_ADDOPTS="-vv --cov --cov-report=xml"
stages:
- name: test
if: tag IS NOT present
- name: release
if: tag IS present
jobs:
include:
- os: windows
language: shell
env:
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
- TOXENV=py38-coverage
before_install:
- choco install --no-progress python
- os: osx
osx_image: xcode10.2
language: generic
env: TOXENV=py37-coverage
before_install:
- ln -sfn "$(which python3)" /usr/local/bin/python
- python -V
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
- python: '2.7'
env: TOXENV=py27-coverage
- python: '3.4'
env: TOXENV=py34-coverage
- python: '3.5'
env: TOXENV=py35-coverage
- python: '3.6'
env: TOXENV=py36-coverage
- python: '3.7'
env: TOXENV=py37-coverage
- python: '3.8'
env: TOXENV=py38-coverage
- python: 'pypy'
env: TOXENV=pypy-coverage
- python: 'pypy3'
env: TOXENV=pypy3-coverage
- python: '3.7'
env: TOXENV=checkqa
- stage: release
script: skip
install: skip
after_success: true
env:
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: __token__
password:
secure: "GCyMei2qFzd9AN0EmT9AGqO0zQFtab8Yff4O9zmpDn34hk7TRhQdAHqPXTj0GovYjN783y31jQdVPbEsFiXUAtEu6rfOBwTtVvNCHGVdDQ0nhZFZVwYD3NfhaV1UCq/ahs5AdUEARAPbR8lviH4PMByrMs3x+ul+bHfZ70QlD1xvC/wlkZ+C/FWc5WiKbkqM5W/CUJoOnX7C5Cx/cI/VZI8X3N77t1J7fW4CEvk3nvU9CW8gDCcuJhq4Hr4oW85PsSCcJagwo1im3WSK+5rNTFlihoE1kGYtrDlWFrNFruAwobk9LSjk+GKTZqD6PFxilON/hiKavxHNYEBwwnfvpDTK87lQHU1LuLOjNMDn8pPOj8uvvKrx9y2BgtFcJzEq9oudtJOKYcxoVpLm/tmqB4QzlTWpOKXk769Sk7lZM9n+psu6wtAd1X8GH5qFon5z0YnNmaNFew5bKs3R/L3Eav1OyskA0zi4f/h8s98apnY4AGX7ul/xxoJhp3OXiSN75fMI6SUiNZLFgRUmFNqJ6pzCqHDbV0y60EeH+5BBLIdKc/D+YsuqDZYAjkN4ze6JVzGtxSSK9tuZyKJJ7zPXT1qdZxXRF0XOHRcVTxl+tNBncCmVvrJmf8QvQ6FteShZqTu3qfWWAubCOGVrxr0aVVZkYR6izNrAsp+J2/ETs5Q="
on:
tags: true
repo: pdbpp/fancycompleter
install:
- pip install tox==3.12.1
# NOTE: need to upgrade virtualenv to allow "Direct url requirement" with
# installation in tox.
- pip install virtualenv==16.6.0
script:
- tox
after_script:
- |
if [[ "${TOXENV%-coverage}" != "$TOXENV" ]]; then
curl --version
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash > codecov.sh
bash codecov.sh -Z -X fix -f coverage.xml -n $TOXENV -F "${TRAVIS_OS_NAME}"
fi
# Only master and releases. PRs are used otherwise.
branches:
only:
- master
- /^\d+\.\d+(\.\d+)?(-\S*)?$/