-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
42 lines (34 loc) · 1.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
matrix:
include:
- osx_image: xcode14.2
env: DESTINATION="iPad Pro (11-inch) (16.2)" SWIFT_VERSION="5.0"
- osx_image: xcode14.2
env: DESTINATION="iPhone 14 Pro Max (16.0)" SWIFT_VERSION="5.0"
- osx_image: xcode13.1
env: DESTINATION="iPhone 12 mini (15.0)" SWIFT_VERSION="4.0"
- osx_image: xcode13.1
env: DESTINATION="iPhone 8 Plus (14.5)" SWIFT_VERSION="4.0"
- osx_image: xcode13.1
env: DESTINATION="iPhone 8 (14.0)" SWIFT_VERSION="4.0"
language: objective-c
cache: cocoapods
podfile: Example/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
# - gem update xcodeproj # https://github.com/CocoaPods/CocoaPods/issues/7835
- pod install --repo-update --project-directory=Example
# Grepping destination device udid
- DESTINATION_UDID=$(instruments -s devices | grep "$DESTINATION \[" | sed -E 's/.*\[([0-9A-F-]+)\].*/\1/g')
script:
- set -o pipefail && xcodebuild test
`` -enableCodeCoverage YES
`` -workspace Example/CollectionViewCenteredFlowLayout.xcworkspace
`` -scheme Example
`` -sdk iphonesimulator
`` -destination "id=$DESTINATION_UDID"
`` ONLY_ACTIVE_ARCH=NO
`` | xcpretty
- pod lib lint --swift-version=$SWIFT_VERSION