Skip to content

Commit

Permalink
Merge pull request #262 from BoltsFramework/nlutsenko.script
Browse files Browse the repository at this point in the history
Unbreak packaging script.
  • Loading branch information
nlutsenko authored Jul 8, 2016
2 parents ab660e4 + b4b1457 commit a76bac7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
- TEST_TYPE=Carthage
before_install:
- |
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ] || [ "$TEST_TYPE" = tvOS ]; then
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = macOS ] || [ "$TEST_TYPE" = tvOS ]; then
gem install xcpretty -N --no-ri --no-rdoc
elif [ "$TEST_TYPE" = CocoaPods ]; then
gem install cocoapods --pre --quiet --no-ri --no-rdoc
Expand All @@ -30,7 +30,7 @@ script:
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild test -project Bolts.xcodeproj -sdk iphonesimulator -scheme Bolts-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
elif [ "$TEST_TYPE" = OSX ]; then
elif [ "$TEST_TYPE" = macOS ]; then
set -o pipefail
xcodebuild test -project Bolts.xcodeproj -sdk macosx -scheme Bolts-macOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
elif [ "$TEST_TYPE" = tvOS ]; then
Expand Down
14 changes: 7 additions & 7 deletions scripts/build_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ test -x "$XCODEBUILD" || die 'Could not find xcodebuild in $PATH'
test -x "$LIPO" || die 'Could not find lipo in $PATH'

BOLTS_IOS_BINARY=$BOLTS_BUILD/${BUILDCONFIGURATION}-universal/Bolts.framework/Bolts
BOLTS_OSX_BINARY=$BOLTS_BUILD/${BUILDCONFIGURATION}/Bolts.framework
BOLTS_MACOS_BINARY=$BOLTS_BUILD/${BUILDCONFIGURATION}/Bolts.framework
BOLTS_TVOS_BINARY=$BOLTS_BUILD/${BUILDCONFIGURATION}-appletv-universal/Bolts.framework/Bolts
BOLTS_WATCHOS_BINARY=$BOLTS_BUILD/${BUILDCONFIGURATION}-watch-universal/Bolts.framework/Bolts

Expand All @@ -95,9 +95,9 @@ test -d "$BOLTS_IOS_BUILD" \
|| mkdir -p "$BOLTS_IOS_BUILD" \
|| die "Could not create directory $BOLTS_IOS_BUILD"

test -d "$BOLTS_OSX_BUILD" \
|| mkdir -p "$BOLTS_OSX_BUILD" \
|| die "Could not create directory $BOLTS_OSX_BUILD"
test -d "$BOLTS_MACOS_BUILD" \
|| mkdir -p "$BOLTS_MACOS_BUILD" \
|| die "Could not create directory $BOLTS_MACOS_BUILD"

if [ $WATCHOS -eq 1 ]; then
test -d "$BOLTS_WATCHOS_BUILD" \
Expand Down Expand Up @@ -126,7 +126,7 @@ function xcode_build_target() {

xcode_build_target "iphonesimulator" "${BUILDCONFIGURATION}" "Bolts-iOS"
xcode_build_target "iphoneos" "${BUILDCONFIGURATION}" "Bolts-iOS"
xcode_build_target "macosx" "${BUILDCONFIGURATION}" "Bolts-OSX"
xcode_build_target "macosx" "${BUILDCONFIGURATION}" "Bolts-macOS"
if [ $WATCHOS -eq 1 ]; then
xcode_build_target "watchsimulator" "${BUILDCONFIGURATION}" "Bolts-watchOS"
xcode_build_target "watchos" "${BUILDCONFIGURATION}" "Bolts-watchOS"
Expand Down Expand Up @@ -204,8 +204,8 @@ fi
# Copy/Paste created iOS Framework to final location
cp -av "$(dirname "$BOLTS_IOS_BINARY")" $BOLTS_IOS_FRAMEWORK

# Copy/Paste OSX framework, as this is already built for us
cp -av "$BOLTS_OSX_BINARY" $BOLTS_OSX_FRAMEWORK
# Copy/Paste macOS framework, as this is already built for us
cp -av "$BOLTS_MACOS_BINARY" $BOLTS_MACOS_FRAMEWORK

if [ $WATCHOS -eq 1 ]; then
# Copy/Paste watchOS Framework
Expand Down
4 changes: 2 additions & 2 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [ -z "$BOLTS_SCRIPT" ]; then
# The directory where the target is built
BOLTS_BUILD=$BOLTS_ROOT/build
BOLTS_IOS_BUILD=$BOLTS_ROOT/build/ios
BOLTS_OSX_BUILD=$BOLTS_ROOT/build/osx
BOLTS_MACOS_BUILD=$BOLTS_ROOT/build/osx
BOLTS_WATCHOS_BUILD=$BOLTS_ROOT/build/watchOS
BOLTS_TVOS_BUILD=$BOLTS_ROOT/build/tvOS
BOLTS_BUILD_LOG=$BOLTS_BUILD/build.log
Expand All @@ -57,7 +57,7 @@ if [ -z "$BOLTS_SCRIPT" ]; then

# The path to the built Bolts .framework file
BOLTS_IOS_FRAMEWORK=$BOLTS_IOS_BUILD/$BOLTS_FRAMEWORK_NAME
BOLTS_OSX_FRAMEWORK=$BOLTS_OSX_BUILD/$BOLTS_FRAMEWORK_NAME
BOLTS_MACOS_FRAMEWORK=$BOLTS_MACOS_BUILD/$BOLTS_FRAMEWORK_NAME
BOLTS_WATCHOS_FRAMEWORK=$BOLTS_WATCHOS_BUILD/$BOLTS_FRAMEWORK_NAME
BOLTS_TVOS_FRAMEWORK=$BOLTS_TVOS_BUILD/$BOLTS_FRAMEWORK_NAME

Expand Down

0 comments on commit a76bac7

Please sign in to comment.