Skip to content

Commit 775fd09

Browse files
bobgodwinxfreak4pc
authored andcommitted
Upgraded circle.yml to version 2
1 parent ed7b524 commit 775fd09

File tree

1 file changed

+93
-17
lines changed

1 file changed

+93
-17
lines changed

circle.yml

Lines changed: 93 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,93 @@
1-
machine:
2-
xcode:
3-
version: 9.0
4-
environment:
5-
LANG: en_US.UTF-8
6-
dependencies:
7-
override:
8-
- bin/bootstrap-if-needed
9-
cache_directories:
10-
- "Carthage"
11-
test:
12-
override:
13-
- set -o pipefail
14-
- xcodebuild test -workspace Action.xcworkspace -scheme Action -sdk iphonesimulator -destination "name=iPhone X" | xcpretty -c --test
15-
- xcodebuild build -workspace Action.xcworkspace -scheme Action-watchOS -sdk watchsimulator -destination "name=Apple Watch - 38mm" | xcpretty -c
16-
- xcodebuild build -workspace Action.xcworkspace -scheme Action-macOS -sdk macosx -destination "arch=x86_64" | xcpretty -c
17-
- xcodebuild build -workspace Action.xcworkspace -scheme Action-tvOS -sdk appletvsimulator -destination "name=Apple TV 1080p" | xcpretty -c
1+
---
2+
version: 2
3+
jobs:
4+
"Action Tests":
5+
working_directory: ~/RxSwiftCommunity/Action
6+
parallelism: 1
7+
shell: /bin/bash --login
8+
environment:
9+
XCODE_TEST_REPORTS: /tmp/xcode-test-results
10+
LANG: en_US.UTF-8
11+
macos:
12+
xcode: '10.1'
13+
steps:
14+
- checkout
15+
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS $XCODE_TEST_REPORTS
16+
- restore_cache:
17+
keys:
18+
- v1-dep-{{ .Branch }}-
19+
- v1-dep-master-
20+
- v1-dep-
21+
- run:
22+
name: Bootstrap Carthage
23+
command: carthage update --no-use-binaries
24+
- save_cache:
25+
key: v1-dep-{{ .Branch }}-{{ epoch }}
26+
paths:
27+
- Carthage
28+
- run:
29+
name: Run Tests (Swift 4.0)
30+
command: >
31+
set -o pipefail && xcodebuild test SWIFT_VERSION=4.0
32+
-workspace Action.xcworkspace
33+
-scheme 'Action' -sdk iphonesimulator
34+
-destination "name=iPhone X" | xcpretty -c --test
35+
- run:
36+
name: Run Tests (Swift 4.2)
37+
command: >
38+
set -o pipefail && xcodebuild test SWIFT_VERSION=4.2
39+
-workspace Action.xcworkspace
40+
-scheme 'Action' -sdk iphonesimulator
41+
-destination "name=iPhone X" | xcpretty -c --test
42+
- run:
43+
name: Build watchOS (Swift 4.0)
44+
command: >
45+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.0
46+
-workspace Action.xcworkspace
47+
-scheme Action-watchOS -sdk watchsimulator
48+
-destination "name=Apple Watch Series 2 - 42mm" | xcpretty -c
49+
- run:
50+
name: Build watchOS (Swift 4.2)
51+
command: >
52+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.2
53+
-workspace Action.xcworkspace
54+
-scheme Action-watchOS -sdk watchsimulator
55+
-destination "name=Apple Watch Series 2 - 42mm" | xcpretty -c
56+
- run:
57+
name: Build macOS (Swift 4.0)
58+
command: >
59+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.0
60+
-workspace Action.xcworkspace
61+
-scheme Action-macOS -sdk macosx
62+
-destination "arch=x86_64" | xcpretty -c
63+
- run:
64+
name: Build macOS (Swift 4.2)
65+
command: >
66+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.2
67+
-workspace Action.xcworkspace
68+
-scheme Action-macOS -sdk macosx
69+
-destination "arch=x86_64" | xcpretty -c
70+
- run:
71+
name: Build tvOS (Swift 4.0)
72+
command: >
73+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.0
74+
-workspace Action.xcworkspace
75+
-scheme Action-tvOS -sdk appletvsimulator
76+
-destination "name=Apple TV 4K (at 1080p)" | xcpretty -c
77+
- run:
78+
name: Build tvOS (Swift 4.2)
79+
command: >
80+
set -o pipefail && xcodebuild build SWIFT_VERSION=4.2
81+
-workspace Action.xcworkspace
82+
-scheme Action-tvOS -sdk appletvsimulator
83+
-destination "name=Apple TV 4K (at 1080p)" | xcpretty -c
84+
- store_artifacts:
85+
path: /tmp/xcode-test-results
86+
workflows:
87+
version: 2
88+
build:
89+
jobs:
90+
- "Action Tests":
91+
filters:
92+
tags:
93+
ignore: /[0-9]+(\.[0-9]+)*/

0 commit comments

Comments
 (0)