-
Notifications
You must be signed in to change notification settings - Fork 2
/
.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: ecb24ed0e4ed09f50a512e0b9490e0caa3e2409bb5f1220af8935514279293d9
- 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: ios-base.xcworkspace
xcode_scheme: ios-base-develop
osx_image: xcode10.2
cache:
- bundler
- cocoapods
before_install:
- pod repo update
before_script:
- 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
install:
- bundle install
- pod install
script:
- set -o pipefail
- xcodebuild -workspace ios-base.xcworkspace -scheme ios-base-develop -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.3' build test | xcpretty --test --color
- bundle exec danger
after_script:
- slather coverage
- ./cc-test-reporter after-build -t cobertura --exit-code $TRAVIS_TEST_RESULT