-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
24 lines (20 loc) · 1.23 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
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
language: swift
osx_image: xcode11
# IMPORTANT: xctool that Travis uses by default is not working so we need to run custom xcodebuild instead. Therefore, following default configurations are not applied.
# xcode_project: FlexColorPickerDemo/FlexColorPickerDemo.xcodeproj
# xcode_scheme: FlexColorPickerDemo
# xcode_sdk: iphonesimulator11.3
# cache: cocoapods
# we need to run pod install because podfile.lock is not in the repository
podfile: FlexColorPickerDemo/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=FlexColorPickerDemo
# Add -tc to xcpretty for no printout at all
script:
- set -o pipefail && xcodebuild -workspace FlexColorPickerDemo/FlexColorPickerDemo.xcworkspace -scheme FlexColorPickerDemo -sdk iphonesimulator13.0 CODE_SIGNING_REQUIRED=NO clean build | xcpretty
# - set -o pipefail && xcodebuild -workspace FlexColorPickerDemo/FlexColorPickerDemo.xcworkspace -scheme FlexColorPickerDemo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=11.4' CODE_SIGNING_REQUIRED=NO clean build | xcpretty
- pod lib lint