2017-09-29 08:48:39 +00:00
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
group: edge
|
|
|
|
|
2015-11-06 15:21:19 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2017-09-28 12:03:54 +00:00
|
|
|
- 2.6
|
|
|
|
- 2.7
|
|
|
|
- 3.3
|
|
|
|
- 3.4
|
|
|
|
- 3.5
|
2017-09-29 08:49:57 +00:00
|
|
|
- &mainstream_python 3.6
|
2017-09-29 09:11:58 +00:00
|
|
|
- nightly
|
2015-11-06 15:21:19 +00:00
|
|
|
|
|
|
|
install:
|
2017-09-28 12:06:40 +00:00
|
|
|
- travis_retry pip install --pre -e .[testing,webassets]
|
2015-11-06 15:21:19 +00:00
|
|
|
|
2017-09-28 12:00:34 +00:00
|
|
|
script:
|
2017-09-28 12:03:54 +00:00
|
|
|
- nosetests -v --with-coverage --cover-package=dukpy --cover-erase
|
2017-09-29 10:24:25 +00:00
|
|
|
- if python -c "import sys; sys.exit(sys.version_info < (2,7))"; then
|
|
|
|
python setup.py check -rm;
|
|
|
|
fi
|
2017-09-29 09:12:50 +00:00
|
|
|
- if python -c "import sys; sys.exit(sys.version_info < (3,6))"; then
|
|
|
|
python setup.py check -s;
|
|
|
|
fi
|
2015-11-06 15:21:19 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-09-28 12:00:34 +00:00
|
|
|
- coveralls
|
2017-09-29 08:49:42 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- name: deploy
|
|
|
|
if: tag IS present
|
2017-09-29 08:49:57 +00:00
|
|
|
|
|
|
|
jobs:
|
2017-09-29 09:12:25 +00:00
|
|
|
fast_finish: true
|
2017-09-29 09:11:58 +00:00
|
|
|
allow_failures:
|
|
|
|
- python: nightly
|
2017-09-29 08:49:57 +00:00
|
|
|
include:
|
|
|
|
- stage: deploy
|
|
|
|
python: *mainstream_python
|
|
|
|
install: skip
|
|
|
|
script: skip
|
|
|
|
deploy:
|
|
|
|
provider: pypi
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
all_branches: true
|
|
|
|
user: amol-
|
|
|
|
# just source dist, because binary wheel requires extra work
|
|
|
|
distributions: sdist
|
|
|
|
password:
|
|
|
|
secure: YOUR_ENCRYPTED_PASSWORD_HERE
|