rootstrap/RSFormView

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
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
  - gem install cocoapods -v '1.7.5'
  - cd FullFormExample
  - 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