Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit 7dde851

Browse files
authored
Update CI (#20)
1 parent 0ae09f3 commit 7dde851

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

codecov.yml renamed to .codecov.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
codecov:
2-
token: 5ab4d3a7-d045-432d-91ca-5bd1f5fd5688
3-
41
coverage:
52
precision: 2
63
round: down

.travis.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@ language: objective-c
22
osx_image: xcode9.4
33

44
env:
5-
global:
6-
- NAME='UserDefaultsStore'
7-
- PROJECT='UserDefaultsStore.xcodeproj'
8-
9-
- IOS_DESTINATION='platform=iOS Simulator,name=iPhone X'
10-
- TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
11-
- WATCHOS_DESTINATION='name=Apple Watch - 42mm'
12-
- MACOS_DESTINATION='platform=OS X'
13-
14-
- CODECOV_TOKEN='5ab4d3a7-d045-432d-91ca-5bd1f5fd5688'
5+
- ACTION=test PLATFORM=Mac DESTINATION='platform=OS X'
6+
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone X'
7+
- ACTION=build PLATFORM=watchOS DESTINATION='platform=watchOS Simulator,name=Apple Watch - 42mm'
8+
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
159

1610
before_install:
1711
- bundle install
@@ -20,14 +14,5 @@ before_install:
2014

2115
script:
2216
- set -o pipefail
23-
24-
- xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$IOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
25-
- bash <(curl -s https://codecov.io/bash) -cF ios -J "$NAME" -t "$CODECOV_TOKEN"
26-
27-
- xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$TVOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
28-
- bash <(curl -s https://codecov.io/bash) -cF tvos -J "$NAME" -t "$CODECOV_TOKEN"
29-
30-
- xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$MACOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
31-
- bash <(curl -s https://codecov.io/bash) -cF osx -J "$NAME" -t "$CODECOV_TOKEN"
32-
33-
- xcodebuild clean build -project "$PROJECT" -scheme "$NAME" -destination "$WATCHOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-watchos.json" xcpretty -f `xcpretty-json-formatter`
17+
- xcodebuild -scheme UserDefaultsStore -destination "$DESTINATION" $ACTION | xcpretty -f `xcpretty-json-formatter`
18+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)