Skip to content

Commit 1e6d194

Browse files
authored
Merge pull request #220 from mattrubin/travis
Update Travis config for Xcode 9
2 parents ec51ee7 + a9452c5 commit 1e6d194

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.travis.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,25 @@ language: objective-c
55
xcode_workspace: Authenticator.xcworkspace
66
xcode_scheme: Authenticator
77

8-
osx_image: xcode8.3
8+
osx_image: xcode9
99

1010
env:
1111
- RUNTIME="iOS 9.0" DEVICE="iPhone 4s"
12-
- RUNTIME="iOS 9.1" DEVICE="iPhone 5"
13-
- RUNTIME="iOS 9.2" DEVICE="iPhone 5s"
1412
- RUNTIME="iOS 9.3" DEVICE="iPhone 6s"
15-
- RUNTIME="iOS 10.0" DEVICE="iPhone 6s Plus"
16-
- RUNTIME="iOS 10.1" DEVICE="iPhone SE"
17-
- RUNTIME="iOS 10.2" DEVICE="iPhone 7"
13+
- RUNTIME="iOS 10.0" DEVICE="iPhone SE"
1814
- RUNTIME="iOS 10.3" DEVICE="iPhone 7 Plus"
15+
- RUNTIME="iOS 11.0" DEVICE="iPhone X"
1916

2017
install:
2118
- git submodule update --init --recursive
2219

2320
before_script:
24-
- DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
25-
- RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
26-
- DESTINATION_ID=$(xcrun simctl create Travis $DEVICE_ID $RUNTIME_ID)
27-
- xcrun simctl boot $DESTINATION_ID
21+
- DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
22+
- RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
23+
- DESTINATION_ID=$(xcrun simctl create Travis $DEVICE_ID $RUNTIME_ID)
24+
- xcrun simctl boot $DESTINATION_ID
2825

29-
script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -destination "id=$DESTINATION_ID" build test | xcpretty -c
26+
script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -destination "id=$DESTINATION_ID" build-for-testing test-without-building | xcpretty -c
3027

3128
after_success:
3229
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)