Last active
December 9, 2017 16:00
-
-
Save encukou/7acf70d48cbb53c633cdbab3d81d23e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
sudo: false | |
cache: pip | |
matrix: | |
include: | |
- os: linux | |
python: 3.6 | |
language: python | |
- os: osx | |
language: generic | |
install: | |
- | | |
if [[ "$(uname -s)" == 'Darwin' ]]; then | |
brew install python3 | |
fi | |
- python3 -m pip install --upgrade pip | |
- python3 -m pip install pyqt5 pytest pyinstaller | |
script: | |
- python3 -m pytest -vv test_kalkulacka/ | |
- pyinstaller __main__.py -n kalkulacka-app | |
--exclude-module tkinter | |
--add-data kalkulacka:kalkulacka | |
-F -w | |
- | | |
if [[ "$(uname -s)" == 'Darwin' ]]; then | |
zip -r dist/kalkulacka-app.app.zip dist/kalkulacka-app.app | |
rm -rvf dist/kalkulacka-app.app | |
fi | |
- for f in $(ls dist); do mv dist/$f dist/$(uname -s)-$f; done | |
deploy: | |
provider: releases | |
api_key: | |
secure: B32mRGKN54tJG6WydSMI26JSVU/r+l/45m6Ykg/9gQnyWQgXO6bD7Wn8zTRvXjasVkxxKcwlCnSBcKnfOY16fSmU55eSpSvfWU5Y+NcT2zp4jYzeBgfYr8jSKsllW0WU9sKy/YBQfXOdlqh5xs9BcuB9qzgx/6OGU1HVFKIkvuwYvry7+g08tpvImUMm8xqAcYnvsH+D9VivOKSqYOGjDLcTY9NACa+K3ObXlfC2guHcTU9pBi4t23MyhQyH0SHUVhZ4KuZSXUAE7TqMGb0LlDQzrqIwtBcHnhsVWHIOpN/lXt1rn5GdrqvWeRRablz1tM4q3u0CKl/PWp9AC+HZYdXrM7CgqONP9u+vjhhB6e8d76tzli5Cki5WXP4aOK2aSBpGT0sr1T/guMW4J50oWw2RFdRie3mg+dYoBSiSZpwkATb907xzuECR1efzPu8XygIb4oLMIaXizLVZiBxqykKlTU0dZRtA6PzZCXpRKO7r8U8MdCoY2zG3FIWqBuQK/CrGuu5aTWcZzSbyYzwltoQbvguU42h4k9NwV+TC17G/t3/x/8yMmwbjVb0Qww0HiD5wGvrZzc+vxWOWEIf7iqF9qwPqr1ZY7Xp2W1ifqgz/gEr+dkoJeRcrKsCqpKg+jUuVYkqbvGuakiNAlmqhE7dZYOL/YNy4omRRJEzsFjs= | |
file_glob: true | |
file: dist/* | |
skip_cleanup: true | |
on: | |
tags: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment