-
Notifications
You must be signed in to change notification settings - Fork 361
/
.travis.yml
29 lines (24 loc) · 935 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
language: swift
osx_image: xcode10.2
cache:
directories:
- Carthage
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- carthage bootstrap --cache-builds
jobs:
include:
- stage: "Xcode"
name: "Run tests on iOS"
script: xcrun xcodebuild test -destination "platform=iOS Simulator,OS=12.2,name=iPhone X" -workspace "Bond.xcworkspace" -scheme "Bond-iOS"
after_success: 'bash <(curl -s https://codecov.io/bash)'
-
name: "Build for macOS"
script: xcrun xcodebuild build -destination "platform=macOS" -workspace "Bond.xcworkspace" -scheme "Bond-macOS"
-
name: "Build for tvOS"
script: xcrun xcodebuild build -destination "platform=tvOS Simulator,OS=12.2,name=Apple TV 4K" -workspace "Bond.xcworkspace" -scheme "Bond-tvOS"
- stage: "Swift Package Manager"
name: "Run Tests"
script: swift test