forked from WhyNotHugo/python-barcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (29 loc) · 677 Bytes
/
Copy path.travis.yml
File metadata and controls
34 lines (29 loc) · 677 Bytes
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
language: python
cache: pip
python:
- 3.5
- 3.6
stages:
- test
- name: deploy
if: tag IS present
script:
- python setup.py build
- python test.py
jobs:
include:
- stage: test
python: 3.7
dist: xenial
sudo: true
- stage: deploy
script:
- pip install wheel twine
- python setup.py sdist bdist_wheel
- twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
- stage: deploy
script:
- pip install wheel
- python setup.py sdist bdist_wheel
- gem install dpl
- dpl --api-key=$RELEASES_TOKEN --provider=releases --file=dist/* --file_glob=true --skip_cleanup=true