Browse Source

chore(travis): check if .dmg is actually built

pull/3752/head
Zetok Zalbavar 9 years ago
parent
commit
a3532e4212
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 26
      .travis/build-osx.sh

26
.travis/build-osx.sh

@ -20,7 +20,25 @@ @@ -20,7 +20,25 @@
set -e -o pipefail
# Build OSX
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -i
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -b
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -d
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -dmg
build() {
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -i
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -b
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -d
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -dmg
}
# check if binary was built
check() {
local BIN_NAME="qTox.dmg"
if [[ ! -s "$BIN_NAME" ]]
then
echo "There's no $BIN_NAME !"
exit 1
fi
}
main() {
build
check
}
main

Loading…
Cancel
Save