-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
31 lines (31 loc) · 946 Bytes
/
.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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
branches:
only:
- develop
- master
os: osx
osx_image: xcode11.4
language: swift
xcode_workspace: Example/SDStateTableView.xcworkspace # path to xcworkspace folder
xcode_scheme: SDStateTableView-Example
xcode_destination: platform=iOS Simulator,OS=13.4.1,name=iPhone 8
podfile: Podfile
cache:
- bundler
- cocoapods
before_install:
- gem install bundler --pre
- gem install cocoapods
install:
- cd Example && pod install --repo-update && cd ..
jobs:
include:
- stage: build
if: type = pull_request OR type = push
script:
- instruments -s devices
- xcodebuild build test -workspace Example/SDStateTableView.xcworkspace -scheme SDStateTableView-Example -destination 'platform=iOS Simulator,name=iPhone SE (1st generation),OS=10.3.1' -enableCodeCoverage YES
after_success:
- bash <(curl -s https://codecov.io/bash)