-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
54 lines (53 loc) · 1.33 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
sudo: false
language: python
dist: xenial
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
install: pip install tox-travis
script: tox
jobs:
include:
- stage: Coverage
python:
- "3.7"
env:
- TOXENV=coverage
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build -d -t coverage.py --exit-code $TRAVIS_TEST_RESULT
- stage: Deploy to Pypi
if: NOT type IN (pull_request) AND branch = master
python:
- "3.7"
env:
- TOXENV=django21
deploy:
provider: pypi
user: jsmpypi
password: $PYPIPASSWORD
on:
branch: master
distributions: sdist bdist_wheel
- stage: Deploy to Pypi Test Server
if: NOT type IN (pull_request) AND branch = develop
python:
- "3.7"
env:
- TOXENV=django21
deploy:
provider: pypi
user: jsmpypi
password: $PYPIPASSWORDTEST
on:
branch: develop
distributions: sdist bdist_wheel
server: https://test.pypi.org/legacy/