Permalink
Browse files

Build for devices as well on staging

  • Loading branch information...
megastep committed Apr 27, 2018
1 parent 23acadc commit 4892db9cdc51fbe4e09e4f6b5692124f56936fa2
Showing with 4 additions and 3 deletions.
  1. +3 −2 Frameworks/build_frameworks.sh
  2. +1 −1 Frameworks/build_packages.sh
@@ -7,6 +7,7 @@ set -o pipefail
PROJECT_NAME=AudioKit
PROJECT_UI_NAME=AudioKitUI
CONFIGURATION=${CONFIGURATION:-"Release"}
STAGING_BRANCH="staging"
BUILD_DIR="$PWD/build"
if [ ! -f build_frameworks.sh ]; then
@@ -17,7 +18,7 @@ fi
VERSION=`cat ../VERSION`
PLATFORMS=${PLATFORMS:-"iOS macOS tvOS"}
if test "$TRAVIS" = true && test "$TRAVIS_TAG" = "" && test "$TRAVIS_BRANCH" != "staging";
if test "$TRAVIS" = true && test "$TRAVIS_TAG" = "" && test "$TRAVIS_BRANCH" != "$STAGING_BRANCH";
then
echo "Travis detected, build #$TRAVIS_BUILD_NUMBER"
ACTIVE_ARCH=YES
@@ -53,7 +54,7 @@ create_universal_framework()
cp -v fix-framework.sh "${DIR}/${PROJECT_NAME}.framework/"
fi
if test "$TRAVIS" = true && test "$TRAVIS_TAG" = "";
if test "$TRAVIS" = true && test "$TRAVIS_TAG" = "" && test "$TRAVIS_BRANCH" != "$STAGING_BRANCH";
then # Only build for simulator on Travis CI, unless we're building a release
cp -v "${BUILD_DIR}/${CONFIGURATION}-$2/${PROJECT_NAME}.framework/${PROJECT_NAME}" "${DIR}/${PROJECT_NAME}.framework/"
cp -v "${BUILD_DIR}/${CONFIGURATION}-$2/${PROJECT_UI_NAME}.framework/${PROJECT_UI_NAME}" "${DIR}/${PROJECT_UI_NAME}.framework/"
@@ -90,7 +90,7 @@ test "$TRAVIS_BRANCH" != "$STAGING_BRANCH" && create_playgrounds
# Create binary framework zip for Carthage/CocoaPods, to be uploaded to S3 or GitHub along with release
echo "Packaging AudioKit frameworks version $VERSION for Carthage ..."
echo "Packaging AudioKit frameworks version $VERSION for CocoaPods and Carthage ..."
rm -f AudioKit.framework.zip
cd Carthage
cp ../../LICENSE ../../README.md .

0 comments on commit 4892db9

Please sign in to comment.