forked from rootstrap/RSFormView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 1013 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
env:
global:
- CC_TEST_REPORTER_ID: 2c577f1942e1a4835d5c2941900b485be7c5912ec2bd7eac4bccb9253f2b0ee1
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
language: swift
xcode_workspace: RSFormView.xcworkspace
xcode_scheme: RSFormViewExampleApp
osx_image: xcode10.2
cache:
- bundler
- cocoapods
before_install:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- cd Example
- pod repo update
install:
- bundle install
- pod install
script:
- set -o pipefail
- xcodebuild -workspace RSFormView.xcworkspace -scheme RSFormViewExampleApp -destination 'platform=iOS Simulator,name=iPhone Xs,OS=12.2' build test | xcpretty --test --color
after_script:
- cd ..
- slather coverage
- ./cc-test-reporter after-build -t cobertura --exit-code $TRAVIS_TEST_RESULT