-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.18 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
language: swift
osx_image: xcode11.3
env:
global:
- WORKSPACE='Spy.xcworkspace'
- IOS_DESTINATION='platform=iOS Simulator,OS=12.4,name=iPhone X'
- TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV'
- MACOS_DESTINATION='platform=OS X'
- WATCHOS_DESTINATION='platform=watchOS Simulator,OS=6.1.1,name=Apple Watch Series 5 - 44mm'
- IOS_SCHEME='Spy_iOS'
- TVOS_SCHEME='Spy_tvOS'
- MACOS_SCHEME='Spy_macOS'
- WATCHOS_SCHEME='Spy_watchOS'
before_install:
- make bundler
- brew update
- bundle install
- brew outdated xctool || brew upgrade xctool
- bundle exec pod install
script:
- set -o pipefail
- swift --version
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$IOS_SCHEME" -destination "$IOS_DESTINATION" | xcpretty
- bash <(curl -s https://codecov.io/bash)
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$TVOS_SCHEME" -destination "$TVOS_DESTINATION" | xcpretty
- xcodebuild clean build test -workspace "$WORKSPACE" -scheme "$MACOS_SCHEME" -destination "$MACOS_DESTINATION" | xcpretty
- xcodebuild clean build -workspace "$WORKSPACE" -scheme "$WATCHOS_SCHEME" -destination "$WATCHOS_DESTINATION" | xcpretty