-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
60 lines (51 loc) · 1.64 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
55
56
57
58
59
60
language: python
python:
- "2.7"
- "3.4"
- "3.5"
cache:
directories:
- $HOME/.cache/pip
# So that we get a docker container
sudo: false
## Customize dependencies
install:
- pip install -U pip
- pip install -U wheel
- pip install -U twine
- pip install -U -e .[testing]
## Customize test commands
before_script:
- pep8 stackdio/ && echo 'Finished PEP-8 Check Cleanly' || echo 'Finished PEP-8 Check With Errors'
- pylint stackdio/ && echo 'Finished Pylint Check Cleanly' || echo 'Finished Pylint Check With Errors'
# Nothing to do here yet
script:
- date
# Only build artifacts on success
after_success:
- coveralls
- python setup.py sdist
- python setup.py bdist_wheel
deploy:
- provider: releases
api_key:
secure: WDRJ+QYPfAMuH8sEFPTTEHabaEtfvLWvHiXi69NA3lruIlKr0Id5gpF/Bqr5VfHiz9jdHuBRdVLgYRYVXAVsRkw13N1YlHgR4j4oi61fMugwDTC820Jnf8EDpuvXys8TPiPRh7Xe2XTGc4HMO0moGz6gp9gH4OAsxGgLPNLmiDA=
file:
- dist/stackdio-${TRAVIS_TAG}.tar.gz
- dist/stackdio-${TRAVIS_TAG}-py2.py3-none-any.whl
skip_cleanup: true
on:
tags: true
repo: stackdio/stackdio-python-client
python: "2.7"
# Upload to pypi. Do this instead of the pypi provider so that we
# ensure the exact same artifact is uploaded to github and pypi.
# The pypi provider will re-build the 2 artifacts, which is not ideal.
# This requires setting TWINE_USERNAME and TWINE_PASSWORD in travis.
- provider: script
script: twine upload dist/stackdio-${TRAVIS_TAG}.tar.gz dist/stackdio-${TRAVIS_TAG}-py2.py3-none-any.whl
skip_cleanup: true
on:
tags: true
repo: stackdio/stackdio-python-client
python: "2.7"