mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-05 05:22:24 +12:00
Limit pyinstaller package build and deployment to osx in Travis CI
This commit is contained in:
parent
b0774b4149
commit
200f3544a9
|
@ -12,10 +12,7 @@ script:
|
|||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run -s '-screen 0 640x480x24 +extension GLX' pytest -vs; fi
|
||||
before_deploy:
|
||||
- export FILENAME=manuskript-$TRAVIS_BRANCH-$TRAVIS_OS_NAME.zip
|
||||
- pyinstaller manuskript.spec --clean
|
||||
- cd dist && zip $FILENAME -r manuskript && cd ..
|
||||
- ls dist
|
||||
- cp dist/$FILENAME dist/manuskript-osx-develop.zip
|
||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/build_osx.sh; fi
|
||||
deploy:
|
||||
- provider: releases
|
||||
api_key:
|
||||
|
@ -24,11 +21,13 @@ deploy:
|
|||
overwrite: true
|
||||
skip_cleanup: true
|
||||
on:
|
||||
os: osx
|
||||
tags: true
|
||||
- provider: script
|
||||
script: "curl -T dist/manuskript-osx-develop.zip -u hfpn_semaphoreci:$FTP_PASSWORD ftp://www.theologeek.ch/web/manuskript/releases/ -v"
|
||||
skip_cleanup: true
|
||||
on:
|
||||
os: osx
|
||||
branch: develop
|
||||
env:
|
||||
global:
|
||||
|
|
10
package/build_osx.sh
Executable file
10
package/build_osx.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -ev
|
||||
if [ z"$FILENAME" = "z" ]; then
|
||||
echo "Error: Environment variable FILENAME is not set"
|
||||
exit 1
|
||||
fi
|
||||
pyinstaller manuskript.spec --clean
|
||||
cd dist && zip $FILENAME -r manuskript && cd ..
|
||||
ls dist
|
||||
cp dist/$FILENAME dist/manuskript-osx-develop.zip
|
Loading…
Reference in a new issue