Skip to content

Commit

Permalink
[travis] create distributions in before_deploy stage; use glob patter…
Browse files Browse the repository at this point in the history
…n dist/* to upload to github releases
  • Loading branch information
Cosimo Lupo committed Oct 28, 2016
1 parent 0f02431 commit 0a9cc5c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ install:
# the whole repo, and not just the last 50 commits.
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then git fetch --unshallow; fi
script: tox
after_success:
- pip wheel --no-deps -w dist .
- python setup.py sdist
before_deploy:
- export ZIP=$(ls dist/booleanOperations*.zip)
- export WHL=$(ls dist/booleanOperations*.whl)
- python setup.py sdist bdist_wheel
deploy:
# deploy to Github Releases on tags
- provider: releases
api_key:
secure: H2rz0E/GjRrRmvf6EYWv7Fyu+y4qU+InGiYlQ6xoyrjmMFCTYiPNW0ysu8893JFILusfO48zzEix7HcumQXtJU16XYwqft9eiWIGzSlP1krusmpQ0yTnuy9wEQcd7fXLEQDfiVZpJxWpC1TtsuIdDqpSUFcHDg4hlvn1IIh+6HwRP6+M5Mprze087ydBCKkO4CvqR4olC7bkSPorRtqUsiUHlUxYFS+R75a8ghqVQbky7ew9/r90zljCBFwYTPEv9tQ7OxnAQiUaAYojceThsBrNP1lH83tOoqB2FkKr9I5dxi5gqNuUsJHh3QK0V59oQCxU+iVFYfrlIZHTBQ+2caxIeWm2k9RkMXXkbg1LyfpORt+5L+NcFNE4WT0DTlYrKnpW+jrak0LEWaI97+15uHahph3vOJgaZrTFvRQZUJTWCNcji2jGbZg+O3pS1Vtd1xEgJ1TcrkOYLYBMrVOywbuQL4sXofLxH3I5RwAenkgm5TwxtuiNxpUkqlEhzJ+GYwWtfb7/qtcLIK7Xn6cDdsQG6XYQMVt+HpCKgRLlrQC8si6l+jZBEtJ7o4IKeYbtybFCe5H3V0jnRFRyncPPdpBavqJ093Pr7fGLvmZuHl551WRtyPlBN4aMGsqvqUSjwr/TxsX5zZ1tQ4QTN2YTmCdeUO6P/fwTBf5p0F3QFo8=
file:
- "${ZIP}"
- "${WHL}"
file_glob: true
file: "dist/*"
skip_cleanup: true
on:
repo: typemytype/booleanOperations
Expand Down

0 comments on commit 0a9cc5c

Please sign in to comment.