-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
45 lines (37 loc) · 1.16 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
language: objective-c
osx_image: xcode10.2 # new in https://docs.travis-ci.com/user/reference/osx/
sudo: true
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
notifications:
email: false
addons:
homebrew:
packages:
- curl # Fix the codecov upload issue
cache: cocoapods
podfile: MKAppDemo/Podfile
before_install:
- env
- locale
- gem install cocoapods --prerelease --no-document --quiet
- gem install xcpretty --no-document --quiet
- pod --version
- pod repo update --silent
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
script:
- set -o pipefail
- echo Build the Demo apps
- pod install --project-directory=MKAppDemo
- cd MKAppDemo
- xcodebuild build -workspace MKApp.xcworkspace -scheme 'MKApp' -configuration Debug -destination 'name=iPhone XS' | xcpretty -c
- xcodebuild build -workspace MKApp.xcworkspace -scheme 'MKApp' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- echo Clean DerivedData
- rm -rf ~/Library/Developer/Xcode/DerivedData/
- mkdir DerivedData
after_success:
- bash <(curl -s https://codecov.io/bash)