Files
MapLibreParticleLab/scripts/ios/run.sh
John Firebaugh 3ccb0b5610 Revert "Merge pull request #1429 from mapbox/travis-setup"
This reverts commit 9a233c7ed2, reversing
changes made to 642024af6d.
2015-05-11 22:03:46 -07:00

36 lines
871 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
set -u
BUILDTYPE=${BUILDTYPE:-Release}
source ./scripts/travis_helper.sh
# Add Mason to PATH
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
PUBLISH_TAG=($(git show -s --format=%B | sed -n 's/.*\[publish \([a-z]\{1,\}\)-v\([0-9.]\{1,\}\)\].*/\1 \2/p'))
PUBLISH_PLATFORM=${PUBLISH_TAG[0],-}
PUBLISH_VERSION=${PUBLISH_TAG[1],-}
################################################################################
# Build
################################################################################
if [[ ${PUBLISH_PLATFORM} = 'ios' ]]; then
# build & package iOS
mapbox_time "package_ios" \
make ipackage
# publish iOS build
mapbox_time "deploy_ios" \
./scripts/ios/publish.sh "${PUBLISH_VERSION}"
else
# build & test iOS
mapbox_time "run_ios_tests" \
make ipackage-sim
fi