Skip to content

Commit

Permalink
feature: make sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kosenda committed Apr 1, 2024
1 parent 61a7250 commit 6a1eb67
Showing 1 changed file with 1 addition and 72 deletions.
73 changes: 1 addition & 72 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
version: 2.1

orbs:
slack: circleci/[email protected]
gh: circleci/[email protected]

executors:
Expand Down Expand Up @@ -112,17 +111,6 @@ commands:
- ~/.gradle
key: jars-{{ checksum "build.gradle.kts" }}-{{ checksum "app/build.gradle.kts" }}-{{ checksum "gradle/libs.versions.toml" }}

setup_bundle:
steps:
- run:
neme: Gem install bundler
command: sudo gem install bundler:2.4.12
- run:
name: Bundle install
command: |
bundle config set --local path 'vendor/bundle'
bundle install
unit_test:
parameters:
build_variant:
Expand All @@ -136,17 +124,6 @@ commands:
fi
./gradlew test<< parameters.build_variant >> $roborazzi_option --stacktrace
report_jacoco:
steps:
- run:
name: Report jacoco
command: ./gradlew jacocoTestReport
- run:
name: Zip jacoco report
command: zip -r jacocoTestReport.zip ./build/reports/jacoco/jacocoTestReport/html
- store_artifacts:
path: jacocoTestReport.zip

setting_git_config:
steps:
- run:
Expand Down Expand Up @@ -263,13 +240,6 @@ commands:
done || true
jobs:
dependencies:
executor: android
steps:
- checkout
- set_locale_properties
- restore_and_save_gradle_cache

unit_test:
executor: android
steps:
Expand All @@ -278,37 +248,10 @@ jobs:
- get_screenshots
- set_locale_properties
- restore_and_save_gradle_cache
- setup_bundle
- run:
name: Ktlint check
command: ./gradlew --continue ktlintCheck
- unit_test:
build_variant: ProdDebug
- report_jacoco
- run:
name: Run danger file
command: bundle exec danger --verbose
- push_compare_branch
- comment_screenshot_diff
- slack/notify:
event: fail
template: basic_fail_1
- slack/notify:
event: pass
template: basic_success_1

compile_mock:
executor: android
steps:
- checkout
- set_locale_properties
- restore_and_save_gradle_cache
- run:
name: Build mock
command: ./gradlew compileMockDebugSource
- slack/notify:
event: fail
template: basic_fail_1

save_screenshots:
executor: android
Expand All @@ -325,26 +268,12 @@ jobs:
- cleanup_old_branch:
prefix: screenshots_
maximum_seconds_past: 15552000 # 180 days
- slack/notify:
event: fail
template: basic_fail_1

workflows:
test:
jobs:
- dependencies
- unit_test:
context: slack-secrets
requires:
- dependencies
- compile_mock:
context: slack-secrets
requires:
- dependencies
- unit_test
- save_screenshots:
context: slack-secrets
requires:
- dependencies
filters:
branches:
only:
Expand Down

0 comments on commit 6a1eb67

Please sign in to comment.