Skip to content

Commit

Permalink
Add PyPI publishing support to Travis CI
Browse files Browse the repository at this point in the history
When tagged commits go through the Travis CI workflow, package
everything up and publish it on PyPI.
  • Loading branch information
hectcastro authored and Hector Castro committed Nov 2, 2016
1 parent f9412d4 commit 3be17fc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
language: python

sudo: false

python:
- 2.7
- 3.5

env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10

matrix:
exclude:
- python: 3.5
env: DJANGO=1.6
- python: 3.5
env: DJANGO=1.7


install:
- pip install -q Django==$DJANGO
- pip install -r dev_requirements.txt
- python setup.py install

script:
- coverage run --source=djqscsv test_app/manage.py test djqscsv_tests
- flake8 --exclude=migrations djqscsv/ test_app/

after_success:
- coveralls

deploy:
provider: pypi
user: azavea
password:
secure: Wb3ow0qdnjFsdIoC2Lvke0Rp6h40WNDkp4Fuyltd0ex2MQMglNo1qHZYlhQvJ/5q7pHEAO7pIqOMzOQ1mls9Za1/AoolEl3zm9b3oW86bAR8AVS/UdCUkkCmPaO+0VsYCt63McaLFA0xQnWxA7kZUkfEeS7RBhT63f+diPqg2fU=
on:
tags: true
distributions: sdist bdist_wheel
repo: azavea/django-queryset-csv

0 comments on commit 3be17fc

Please sign in to comment.