-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (28 loc) · 703 Bytes
/
.travis.yml
File metadata and controls
34 lines (28 loc) · 703 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
sudo: false
language: python
cache: pip
python: 3.6
stages:
- test
- name: deploy
if: tag IS present
install:
- pip install flake8 flake8-import-order
script:
- flake8
before_deploy:
- pip install wheel
- python setup.py sdist bdist_wheel
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=$GITHUB_OAUTH_TOKEN --provider=releases --file=dist/* --file_glob=true --skip_cleanup=true