forked from revsys/django-health-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.18 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
language: python
sudo: false
cache: pip
python:
- '3.6'
env:
matrix:
- TOXENV=qa
- TOXENV=docs
- DJANGO=111
- DJANGO=20
- DJANGO=master
matrix:
fast_finish: true
allow_failures:
- env: DJANGO=master
install:
- pip install --upgrade codecov tox
before_script:
- |
if [[ -z $TOXENV ]]; then
export TOXENV=py$(echo $TRAVIS_PYTHON_VERSION | sed -e 's/\.//g')-dj$DJANGO
fi
- echo $TOXENV
script:
- tox -e $TOXENV
after_success:
- codecov
jobs:
include:
- stage: PyPI release # will run after the default "test" stage succeeds
script: echo "Deploying to PyPI ..." # override regular test script; "skip" should also work
env:
- TOXENV=qa # if not set explicitly, build matrix vars will use their first value
if: tag IS present
deploy:
provider: pypi
user: codingjoe
password:
secure: jJyadofJm7F1Qco+EDCyN/aMZaYSbfQ0GAE02Bx7I499MkjPYvv38X2btg+PjdW3rzGD0d/kq24lfWLkgKncyQ/YMgLQ7H/GuCCHHYbKUklxllaoFXActBjstmKOvXyWWC5oEb+YEJ4HTwgkvS6wkp69B7C1d4BAOqGs5IKnCSo=
on:
tags: true
distributions: sdist bdist_wheel
repo: KristianOellegaard/django-health-check
branch: master