forked from WhyNotHugo/caffeine-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (29 loc) · 672 Bytes
/
Copy path.travis.yml
File metadata and controls
35 lines (29 loc) · 672 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
35
language: python
cache: pip
python:
# If there's just one, travis fails :(
- 3.6
- 3.5
env:
- TOXENV=flake8
stages:
- test
- name: deploy
if: tag IS present
install:
- pip install tox
script:
- tox -e flake8
jobs:
include:
- 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