forked from jupyterhub/oauthenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (46 loc) · 1.07 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
language: python
sudo: false
cache: pip
dist: xenial
install:
- pip install --upgrade pip
- pip install --upgrade --pre -r test-requirements.txt .
- pip freeze
env:
OAUTH2_TOKEN_URL="token_url"
OAUTH2_USERDATA_URL="userdata_url"
script:
- |
if [[ "$TEST_LINT" = 1 ]]; then
flake8 oauthenticator
else
py.test --cov oauthenticator oauthenticator
fi
after_success:
- codecov
jobs:
allow_failures:
- python: nightly
fast_finish: true
include:
# Default stage: test
- python: 3.8
env: TEST_LINT=1
- python: 3.8
- python: 3.7
- python: 3.6
- python: 3.5
- python: nightly
# Only deploy if all test jobs passed
- stage: deploy
python: 3.7
if: tag IS present
deploy:
provider: pypi
user: __token__
# password: see secret PYPI_PASSWORD variable
distributions: sdist bdist_wheel
on:
# Without this we get the note about:
# Skipping a deployment with the pypi provider because this branch is not permitted: <tag>
tags: true