-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (28 loc) · 990 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
32
33
language: objective-c
osx_image: xcode10.1
os: osx
sudo: true
cache:
- bundler
- cocoapods
rvm:
- 2.1.0
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
podfile: ./Tests/Podfile
before_install:
- sudo gem install xcpretty-travis-formatter
- sudo gem install cocoapods --pre
- cd ./Tests && pod update && cd ..
- mv ./Tests/Tests/Resources/demo-test-keysset.plist ./Tests/Tests/Resources/test-keysset.plist
script:
- set -o pipefail
- xcodebuild -workspace './Tests/ChatEngine Tests.xcworkspace' -scheme '[Test] Code Coverage (Full)' -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=YES | xcpretty -f `xcpretty-travis-formatter`
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- cat -n ~/Library/Logs/scan/*
- cat -n $TMPDIR/com.apple.dt.XCTest-status/Session*.log
- cat -n ~/Library/Logs/DiagnosticReports/xctest*.crash