-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
32 lines (31 loc) · 903 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
language: swift
os: osx
osx_image: xcode13.3
before_install:
- gem install xcpretty
- gem install cocoapods
jobs:
include:
- stage: Linting
name: SwiftLint
addons:
homebrew:
packages:
- swiftlint
update: true
script:
- swiftlint
- stage: Unit Tests
name: iOS
script:
- pod install
- xcodebuild -workspace "OktaLogger.xcworkspace" -scheme "OktaLoggerTests" -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean test
- stage: SPM Example
name: iOS-SPM
script:
- cd Example/Example-iOS-SPM/OktaLoggerExample-SPM
- xcodebuild -scheme OktaLoggerExample-SPM -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean build
- stage: Dependency Manager Validation
name: CocoaPods
script:
- travis_wait 30 pod lib lint --allow-warnings