Skip to content

Commit 2018e41

Browse files
committed
Updated travis-ci yaml file to use bundler and Xcode 10
1 parent 2e57470 commit 2018e41

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

.travis.yml

+24-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
language: objective-c
2-
osx_image: xcode9.3
1+
os: osx
2+
osx_image: xcode10
33
branches:
44
only:
55
- master
6+
67
env:
78
global:
89
- LC_CTYPE=en_US.UTF-8
@@ -12,37 +13,43 @@ env:
1213
- MACOS_FRAMEWORK_SCHEME="SQift macOS CI"
1314
- TVOS_FRAMEWORK_SCHEME="SQift tvOS CI"
1415
- WATCHOS_FRAMEWORK_SCHEME="SQift watchOS"
15-
- IOS_SDK=iphonesimulator11.3
16-
- OSX_SDK=macosx10.13
17-
- TVOS_SDK=appletvsimulator11.3
18-
- WATCHOS_SDK=watchsimulator4.3
1916
matrix:
20-
- DESTINATION="OS=11.3,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="YES"
21-
- DESTINATION="OS=10.3.1,name=iPhone 7" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
22-
- DESTINATION="OS=9.3,name=iPhone 4S" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
23-
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" SDK="$OSX_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
24-
- DESTINATION="OS=11.3,name=Apple TV" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
25-
- DESTINATION="OS=4.3,name=Apple Watch Series 2 - 42mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
17+
- DESTINATION="OS=12.0,name=iPhone XS" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="YES"
18+
- DESTINATION="OS=11.3,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
19+
- DESTINATION="OS=10.3.1,name=iPhone 7" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
20+
- DESTINATION="OS=9.3,name=iPhone 4S" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
21+
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
22+
- DESTINATION="OS=12.0,name=Apple TV 4K" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
23+
- DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
24+
25+
before_install:
26+
- gem update bundler
27+
2628
script:
2729
- set -o pipefail
30+
- rvm list
31+
- which ruby
32+
- bundle exec gem list
33+
- bundle exec pod --version
34+
- bundle exec xcpretty --version
2835
- xcodebuild -version
2936
- xcodebuild -showsdks
3037

3138
# Build Framework in Debug and Run Tests if specified
3239
- if [ $RUN_TESTS == "YES" ]; then
33-
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES test | xcpretty -c;
40+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES test | bundle exec xcpretty -c;
3441
else
35-
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
42+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | bundle exec xcpretty -c;
3643
fi
3744

3845
# Build Framework in Release and Run Tests if specified
3946
- if [ $RUN_TESTS == "YES" ]; then
40-
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty -c;
47+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | bundle exec xcpretty -c;
4148
else
42-
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
49+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | bundle exec xcpretty -c;
4350
fi
4451

4552
# Run `pod lib lint` if specified
4653
- if [ $POD_LINT == "YES" ]; then
47-
pod lib lint --private;
54+
bundle exec pod lib lint;
4855
fi

0 commit comments

Comments
 (0)