-
Notifications
You must be signed in to change notification settings - Fork 14
/
circle-config.yml
106 lines (94 loc) · 2.42 KB
/
circle-config.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: 2.1
executors:
uptech_macos:
macos:
xcode: "11.1.0"
shell: /bin/bash --login -eo pipefail
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
commands:
uptech_restore_cache:
steps:
- restore_cache:
key: dependency-cache-{{ checksum "Cartfile.resolved" }}-{{ .Environment.CACHE_VERSION }}
uptech_save_cache:
steps:
- save_cache:
key: dependency-cache-{{ checksum "Cartfile.resolved" }}-{{ .Environment.CACHE_VERSION }}
paths:
- "Carthage/"
install_dependencies:
steps:
- run:
name: Bundle Install
command: bundle install
- run:
name: Install Carthage & SwiftLint
command: ./bin/upstall
- run:
name: Carthage Bootstrap
command: carthage bootstrap --platform ios --cache-builds
uptech_store_test_results:
steps:
- store_test_results:
path: fastlane/test_output
jobs:
build-and-test:
executor: uptech_macos
steps:
- checkout
- uptech_restore_cache
- install_dependencies
- uptech_save_cache
- run:
name: Build and run tests
command: bundle exec fastlane test build_configuration:staging
- uptech_store_test_results
deploy_qa:
executor: uptech_macos
steps:
- checkout
- uptech_restore_cache
- install_dependencies
- uptech_save_cache
- run:
name: Build and run tests
command: bundle exec fastlane test_then_deploy_qa
- uptech_store_test_results
deploy_staging:
executor: uptech_macos
steps:
- checkout
- uptech_restore_cache
- install_dependencies
- uptech_save_cache
- run:
name: Build and run tests
command: bundle exec fastlane test_then_deploy_staging
- uptech_store_test_results
deploy_production:
executor: uptech_macos
steps:
- checkout
- uptech_restore_cache
- install_dependencies
- uptech_save_cache
- run:
name: Build and run tests
command: bundle exec fastlane test_then_deploy_production
- uptech_store_test_results
workflows:
version: 2
build:
jobs:
- build-and-test:
filters:
branches:
ignore:
- develop
- deploy_qa:
filters:
branches:
only:
- develop