Update travis test scripts for xcode8
This commit is contained in:
parent
f2594da350
commit
f3186cb3bf
|
@ -1,7 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This causes the script to fail if any subscript fails
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
echo "Checking test Carthage app..."
|
echo "Checking test Carthage app..."
|
||||||
|
|
||||||
|
gem install xcpretty --no-ri --no-rdoc
|
||||||
|
|
||||||
TESTDIR="$(cd $(dirname $0); pwd)"
|
TESTDIR="$(cd $(dirname $0); pwd)"
|
||||||
cd $TESTDIR
|
cd $TESTDIR
|
||||||
|
|
||||||
|
@ -15,4 +21,4 @@ echo "git \"$GIT_REPO\" \"$GIT_BRANCH\"" > "$TESTDIR/Cartfile"
|
||||||
|
|
||||||
carthage bootstrap --platform ios --configuration Debug --no-use-binaries
|
carthage bootstrap --platform ios --configuration Debug --no-use-binaries
|
||||||
|
|
||||||
xctool build -project "$TESTDIR/CarthageTest.xcodeproj" -scheme CarthageTest -sdk iphonesimulator
|
xcodebuild build -project "${TESTDIR}/CarthageTest.xcodeproj" -scheme CarthageTest -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This causes the script to fail if any subscript fails
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
echo "Checking test CocoaPods app (with frameworks)..."
|
echo "Checking test CocoaPods app (with frameworks)..."
|
||||||
|
|
||||||
gem update cocoapods --no-ri --no-rdoc
|
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
gem install xcpretty --no-ri --no-rdoc
|
||||||
|
gem update cocoapods --no-ri --no-rdoc
|
||||||
|
|
||||||
rm -rf Pods
|
rm -rf Pods
|
||||||
rm -f Podfile.lock
|
rm -f Podfile.lock
|
||||||
pod install --no-repo-update && xctool build -workspace CocoapodsTest.xcworkspace -scheme CocoapodsTest -sdk iphonesimulator
|
pod install --no-repo-update && xcodebuild build -workspace CocoapodsTest.xcworkspace -scheme CocoapodsTest -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This causes the script to fail if any subscript fails
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
echo "Checking test CocoaPods app..."
|
echo "Checking test CocoaPods app..."
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
gem install xcpretty --no-ri --no-rdoc
|
||||||
gem update cocoapods --no-ri --no-rdoc
|
gem update cocoapods --no-ri --no-rdoc
|
||||||
|
|
||||||
rm -rf Pods
|
rm -rf Pods
|
||||||
rm -f Podfile.lock
|
rm -f Podfile.lock
|
||||||
pod install --no-repo-update && xctool build -workspace CocoapodsTest.xcworkspace -scheme CocoapodsTest -sdk iphonesimulator
|
pod install --no-repo-update && xcodebuild build -workspace CocoapodsTest.xcworkspace -scheme CocoapodsTest -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
# This causes the script to fail if any subscript fails
|
# This causes the script to fail if any subscript fails
|
||||||
set -e
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
echo "Checking test manual installation app..."
|
echo "Checking test manual installation app..."
|
||||||
|
|
||||||
|
@ -21,4 +22,4 @@ mkdir $FRAMEWORKDIR
|
||||||
cp $BUILDDIR/StripeiOS-Static.zip $FRAMEWORKDIR
|
cp $BUILDDIR/StripeiOS-Static.zip $FRAMEWORKDIR
|
||||||
ditto -xk $FRAMEWORKDIR/StripeiOS-Static.zip $FRAMEWORKDIR
|
ditto -xk $FRAMEWORKDIR/StripeiOS-Static.zip $FRAMEWORKDIR
|
||||||
|
|
||||||
set -o pipefail && xcodebuild test -project "${TESTDIR}/ManualInstallationTest.xcodeproj" -scheme ManualInstallationTest -sdk iphonesimulator | xcpretty -c
|
xcodebuild test -project "${TESTDIR}/ManualInstallationTest.xcodeproj" -scheme ManualInstallationTest -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
set -euf -o pipefail
|
||||||
|
|
||||||
gem install xcpretty --no-ri --no-rdoc
|
gem install xcpretty --no-ri --no-rdoc
|
||||||
set -euf -o pipefail && xcodebuild test -workspace Stripe.xcworkspace -scheme "StripeiOS Tests" -configuration Debug -sdk iphonesimulator | xcpretty -c
|
xcodebuild test -workspace Stripe.xcworkspace -scheme "StripeiOS Tests" -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
set -euf -o pipefail && xcodebuild build -workspace Stripe.xcworkspace -scheme "Stripe iOS Example (Simple)" -sdk iphonesimulator | xcpretty -c
|
xcodebuild build -workspace Stripe.xcworkspace -scheme "Stripe iOS Example (Simple)" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
set -euf -o pipefail && xcodebuild build -workspace Stripe.xcworkspace -scheme "Stripe iOS Example (Custom)" -sdk iphonesimulator | xcpretty -c
|
xcodebuild build -workspace Stripe.xcworkspace -scheme "Stripe iOS Example (Custom)" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c
|
||||||
|
|
Loading…
Reference in New Issue