Skip to content

Commit 1f8143f

Browse files
committed
Include testing with xcodebuild in Travis CI build script
1 parent d7605f6 commit 1f8143f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/travis-build-script.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ echo "Running on OS: ${TRAVIS_OS_NAME}"
88

99
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
1010
# macOS
11+
# 1. Test using Swift Package Manager
1112
swift build --clean
1213
swift build
1314
swift test
15+
16+
# 2. Test using xcodebuild
17+
set -o pipefail
18+
xcodebuild test -scheme SortedArray-macOS | xcpretty
19+
xcodebuild test -scheme SortedArray-iOS -destination "platform=iOS Simulator,name=iPhone 7,OS=10.1" | xcpretty
20+
xcodebuild test -scheme SortedArray-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" | xcpretty
1421
elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
1522
# Linux
1623
echo "Using Docker image: ${DOCKER_IMAGE}"

0 commit comments

Comments
 (0)