-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
36 lines (33 loc) · 1.15 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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode12.2
language: swift
sudo: required
env:
global:
- WORKSPACE=Example/FRadioPlayer.xcworkspace
matrix:
- DESTINATION="platform=iOS Simulator,name=iPhone 12 Pro,OS=14.2"
SCHEME=FRadioPlayer-Example
SDK=iphonesimulator14.2
PLATFORM=ios
#- DESTINATION="platform=macOS,arch=x86_64"
# SCHEME=FRadioPlayer_mac
# SDK=macosx11.0
# PLATFORM=macos
- DESTINATION="platform=tvOS Simulator,name=Apple TV,OS=14.2"
SCHEME=FRadioPlayer_tvOS
SDK=appletvsimulator14.2
PLATFORM=tvos
- DESTINATION="platform=iOS Simulator,name=iPhone 12 Pro,OS=14.2"
SCHEME=FRadioPlayer_SwiftUI
SDK=iphonesimulator14.2
PLATFORM=ios
podfile: Example/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c
- pod lib lint --quick