Skip to content

Commit

Permalink
Added first attempt of CircleCI
Browse files Browse the repository at this point in the history
- Added Fastfile
- Added Config.yml

Signed-off-by: kcw-grunt <mrkerrywashington@icloud.com>
  • Loading branch information
kcw-grunt committed Dec 23, 2024
1 parent 96e3ed4 commit ea30e2e
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# .circleci/config.yml
# ...
orbs:
macos: circleci/macos@2
steps:
- macos/switch-ruby:
version: "3.1"
version: 2.1
jobs:
build-and-test:
macos:
xcode: 14.0.1
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: test
steps:
- checkout
- run: bundle install
- run:
name: Fastlane
command: bundle exec fastlane $FASTLANE_LANE
- store_artifacts:
path: output
- store_test_results:
path: output/scan

adhoc:
macos:
xcode: 14.0.1
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: adhoc
steps:
- checkout
- run: bundle install
- run:
name: Fastlane
command: bundle exec fastlane $FASTLANE_LANE
- store_artifacts:
path: output

workflows:
build-test-adhoc:
jobs:
- build-and-test
- adhoc:
filters:
branches:
only: development
requires:
- build-and-test
24 changes: 24 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# fastlane/Fastfile
default_platform :ios

platform :ios do
before_all do
setup_circle_ci
end

desc "Run all the tests"
lane :test do
scan(
workspace: "litewallet.xcworkspace",
scheme: "litewallet",
devices: ["iPhone 14","iPhone 15"],
clean: true
)
end

desc "Ad-hoc build"
lane :adhoc do
match(type: "adhoc")
gym(export_method: "ad-hoc")
end
end

0 comments on commit ea30e2e

Please sign in to comment.