Skip to content

Commit

Permalink
make a real app
Browse files Browse the repository at this point in the history
  • Loading branch information
tillbey committed Aug 11, 2017
1 parent 9903f28 commit 52c8e32
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ deploy:
api_key:
secure: m1cIFUdlPc/aUWTFDhUrFNl5Z9D4ddP1Fihh0PEaVHQ9bG1/hJfDGd+aFxEvEAMh2IAJd/7UvZZwVGr9SX9/4Ov1qvCWvYYUCP7V16g4NJzwOUolygVrmsWeLtQIWdQbihMAu2Yt5WZJEJhUNEN0F/NxMNBNibsexB7nQ/a4Fe+Oj9OD5FAh80ROjcwHLSY3Eo1V7sdbWu3FX6FWy9g47WsugvGtb9bsjLWdRS0v/Mc9LaiKOt7XW/CPFqNi/+csNia64nLjvmcJElTxo05ncxHX6tfWuE104t53mRUv8YO9/0hy7Y3LODWaD5vtlXjz3OPU80cbMnnm8Puoz4nwNxtp0xLF6h62ufLLyZjGd/M2Qm1o3hWfk8dUXeZojdUyYR/lz9xGG2tP5Pt3fHixyKLiltM24vq410FZZLIGbOahfQgnPzel5HwEC7ipfcJnSnTPyG1H6pkOpo6TW/RVmNKisy1puvSg2Ml3vri6/W7yBOHPyi0rO5cfTk0qS4ckPZRgdSLVo3hTWgjHIhGn/Aj7BD3k5VmNfShW7xf8oLOUroyanfAuh0CVeLJqJeXy+T8YUfEk25jDimzbkH3Sk82wfRoqQQhLMRudV+CXm89jWOOobRR3deZCpO2aaRho9XSewOG2vNMw9e4rB4eRjbEEuh34kli2ozDFZGWOJus=
file:
# - build/Travistest.app
- "dist/Travistest-$TRAVIS_TAG-$TRAVIS_OS_NAME"
- "dist/Travistest-$TRAVIS_TAG-$TRAVIS_OS_NAME.zip"
on:
tags: true
# condition: "[[ "$TRAVIS_OS_NAME" == "osx" ]]"
12 changes: 11 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
# travistest/main.py
# fi

pyinstaller --name="Travistest-$TRAVIS_TAG-$TRAVIS_OS_NAME" --clean --noconfirm --windowed --onefile travistest/main.py
pyinstaller --name=Travistest --clean --noconfirm --windowed --onefile travistest/main.py

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd dist
zip -r "Travistest-$TRAVIS_TAG-$TRAVIS_OS_NAME.zip" "Travistest.app"
fi

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd dist
zip "Travistest-$TRAVIS_TAG-$TRAVIS_OS_NAME.zip" "Travistest"
fi
11 changes: 7 additions & 4 deletions travistest/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import matplotlib



import matplotlib.pyplot as plt

def test():
print('blabla')
return 5


if __name__ == '__main__':
data = [1,2,45,3,30]
plt.plot(data)
plt.show()

0 comments on commit 52c8e32

Please sign in to comment.