forked from omaralbeik/UserDefaultsStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (27 loc) · 1.65 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
37
38
language: objective-c
osx_image: xcode9.4
env:
global:
- PROJECT='UserDefaultsStore.xcodeproj'
- IOS_SCHEME='UserDefaultsStore iOS'
- IOS_DESTINATION='platform=iOS Simulator,name=iPhone X'
- TVOS_SCHEME='UserDefaultsStore tvOS'
- TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
- WATCHOS_SCHEME='UserDefaultsStore watchOS'
- WATCHOS_DESTINATION='name=Apple Watch - 42mm'
- MACOS_SCHEME='UserDefaultsStore macOS'
- MACOS_DESTINATION='platform=OS X'
before_install:
- bundle install
- brew update
- brew outdated xctool || brew upgrade xctool
script:
- set -o pipefail
- swift --version
- xcodebuild clean build test -project "$PROJECT" -scheme "$IOS_SCHEME" -destination "$IOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
- bash <(curl -s https://codecov.io/bash) -cF ios -J 'UserDefaultsStore'
- xcodebuild clean build test -project "$PROJECT" -scheme "$TVOS_SCHEME" -destination "$TVOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
- bash <(curl -s https://codecov.io/bash) -cF tvos -J 'UserDefaultsStore'
- xcodebuild clean build test -project "$PROJECT" -scheme "$MACOS_SCHEME" -destination "$MACOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
- bash <(curl -s https://codecov.io/bash) -cF osx -J 'UserDefaultsStore'
- xcodebuild clean build -project "$PROJECT" -scheme "$WATCHOS_SCHEME" -destination "$WATCHOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-watchos.json" xcpretty -f `xcpretty-json-formatter`