Package binaries for release on Travis

This commit is contained in:
Andrew Naylor 2015-09-20 11:23:36 +01:00
parent c9e899544e
commit cabf18410b
4 changed files with 20 additions and 0 deletions

View file

@ -13,3 +13,6 @@ install:
script:
- bash script/build
before_deploy:
- bash script/package

View file

@ -1,6 +1,7 @@
#!/bin/bash -e
main() {
script/clean
build
# If this is a tagged build we are going to relase

9
script/clean Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash -e
main() {
rm -rf mas.xcarchive
rm -f mas.xcarchive.zip
rm -f mas-cli.zip
}
main

7
script/package Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash -x
echo "==> Compressing mas.xcarchive"
zip -r mas.xcarchive.zip mas.xcarchive
echo "==> Compressing binary"
zip mas-cli.zip mas.xcarchive/Products/usr/local/bin/mas-cli