-
Notifications
You must be signed in to change notification settings - Fork 82
/
circle.yml
65 lines (65 loc) · 2.26 KB
/
circle.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
version: 2
jobs:
"RxCoreLocation Tests":
working_directory: ~/RxSwiftCommunity/RxCoreLocation
parallelism: 1
shell: /bin/bash --login
environment:
XCODE_TEST_REPORTS: /tmp/xcode-test-results
LANG: en_US.UTF-8
macos:
xcode: '11.4.0'
steps:
- checkout
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS $XCODE_TEST_REPORTS
- restore_cache:
keys:
- v1-dep-{{ .Branch }}-
- v1-dep-master-
- v1-dep-
- run:
name: Bootstrap Carthage
command: carthage update --no-use-binaries
- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- Carthage
- run:
name: Run Tests (Swift 5.2)
command: >
set -o pipefail && xcodebuild test SWIFT_VERSION=5.2
-workspace RxCoreLocation.xcworkspace
-scheme 'RxCoreLocation-iOS' -sdk iphonesimulator
-destination "name=iPhone 11" | xcpretty -c --test
- run:
name: Build watchOS (Swift 5.2)
command: >
set -o pipefail && xcodebuild build SWIFT_VERSION=5.2
-workspace RxCoreLocation.xcworkspace
-scheme RxCoreLocation-watchOS -sdk watchsimulator
-destination "name=Apple Watch Series 5 - 44mm" | xcpretty -c
- run:
name: Build macOS (Swift 5.2)
command: >
set -o pipefail && xcodebuild build SWIFT_VERSION=5.2
-workspace RxCoreLocation.xcworkspace
-scheme RxCoreLocation-macOS -sdk macosx
-destination "arch=x86_64" | xcpretty -c
- run:
name: Build tvOS (Swift 5.2)
command: >
set -o pipefail && xcodebuild build SWIFT_VERSION=5.2
-workspace RxCoreLocation.xcworkspace
-scheme RxCoreLocation-tvOS -sdk appletvsimulator
-destination "name=Apple TV 4K (at 1080p)" | xcpretty -c
- store_artifacts:
path: /tmp/xcode-test-results
workflows:
version: 2
build:
jobs:
- "RxCoreLocation Tests":
filters:
tags:
ignore: /[0-9]+(\.[0-9]+)*/