Skip to content

Commit

Permalink
Deploy deb files to PPA.
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Jan 1, 2018
1 parent 7273b8e commit 9b0dcbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -68,3 +68,4 @@ after_success:
- python-codacy-coverage -r coverage.xml
- if [[ -n "$TRAVIS_TAG" ]]; then pip install twine; fi
- if [[ -n "$TRAVIS_TAG" && "$TRAVIS_OS_NAME" == "osx" ]]; then twine upload --skip-existing dist/*; fi
- .travis/upload_ppa.sh
Binary file added .travis/launchpad.key.enc
Binary file not shown.
9 changes: 9 additions & 0 deletions .travis/upload_ppa.sh
@@ -0,0 +1,9 @@
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
./setup.py --command-packages=stdeb.command sdist_dsc --with-python2=True --with-python3=True
if [[ -n "$TRAVIS_TAG" ]]; then
openssl aes-256-cbc -K $encrypted_765c87af1f2f_key -iv $encrypted_765c87af1f2f_iv -in .travis/launchpad.key.enc | gpg --import
debsign -k5B69F065 deb_dist/*.changes
dput ppa:4b796c65/ppa deb_dist/*.changes
fi
fi

0 comments on commit 9b0dcbd

Please sign in to comment.