Skip to content

Commit ea30e2e

Browse files
committed
Added first attempt of CircleCI
- Added Fastfile - Added Config.yml Signed-off-by: kcw-grunt <[email protected]>
1 parent 96e3ed4 commit ea30e2e

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

.circleci/config.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# .circleci/config.yml
2+
# ...
3+
orbs:
4+
macos: circleci/macos@2
5+
steps:
6+
- macos/switch-ruby:
7+
version: "3.1"
8+
9+
version: 2.1
10+
jobs:
11+
build-and-test:
12+
macos:
13+
xcode: 14.0.1
14+
environment:
15+
FL_OUTPUT_DIR: output
16+
FASTLANE_LANE: test
17+
steps:
18+
- checkout
19+
- run: bundle install
20+
- run:
21+
name: Fastlane
22+
command: bundle exec fastlane $FASTLANE_LANE
23+
- store_artifacts:
24+
path: output
25+
- store_test_results:
26+
path: output/scan
27+
28+
adhoc:
29+
macos:
30+
xcode: 14.0.1
31+
environment:
32+
FL_OUTPUT_DIR: output
33+
FASTLANE_LANE: adhoc
34+
steps:
35+
- checkout
36+
- run: bundle install
37+
- run:
38+
name: Fastlane
39+
command: bundle exec fastlane $FASTLANE_LANE
40+
- store_artifacts:
41+
path: output
42+
43+
workflows:
44+
build-test-adhoc:
45+
jobs:
46+
- build-and-test
47+
- adhoc:
48+
filters:
49+
branches:
50+
only: development
51+
requires:
52+
- build-and-test

fastlane/Fastfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# fastlane/Fastfile
2+
default_platform :ios
3+
4+
platform :ios do
5+
before_all do
6+
setup_circle_ci
7+
end
8+
9+
desc "Run all the tests"
10+
lane :test do
11+
scan(
12+
workspace: "litewallet.xcworkspace",
13+
scheme: "litewallet",
14+
devices: ["iPhone 14","iPhone 15"],
15+
clean: true
16+
)
17+
end
18+
19+
desc "Ad-hoc build"
20+
lane :adhoc do
21+
match(type: "adhoc")
22+
gym(export_method: "ad-hoc")
23+
end
24+
end

0 commit comments

Comments
 (0)