-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (28 loc) · 2.3 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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode8.3
xcode_sdk: iphonesimulator10.3
language: swift
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- set -o pipefail
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 5" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 5s" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 6" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 6 Plus" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 6s" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 6s Plus" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 7" build-for-testing test | xcpretty
- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone 7 Plus" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPhone SE" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPad Air" build-for-testing test | xcpretty
#- xcodebuild -workspace Example/Utilities.xcworkspace -scheme "Utilities-Example" -destination "platform=iOS Simulator,name=iPad Air 2" build-for-testing test | xcpretty
- pod lib lint
- pod spec lint
after_success:
- bash <(curl -s https://codecov.io/bash)