Skip to content

Commit

Permalink
187: Correctly prepare project
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenkleinle committed Nov 20, 2024
1 parent 74f8302 commit ff51bb8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ commands:
paths:
- environment_variables
root: ./
prepare_project:
steps:
- run:
command: fvm dart run slang
name: Generate Translations
- run:
command: cp .env.example .env
name: Apply Example Environment
prepare_workspace:
description: Attach the workspace at ~/attached_workspace and list its contents
steps:
Expand Down Expand Up @@ -170,6 +178,7 @@ jobs:
fvm flutter precache --android
name: Install Flutter Packages
working_directory: android
- prepare_project
- run:
command: bundle exec fastlane android build version_name:${NEW_VERSION_NAME} version_code:${NEW_VERSION_CODE}
name: '[FL] Build'
Expand Down Expand Up @@ -228,12 +237,7 @@ jobs:
- run:
command: fvm dart format -l 120 -o none --set-exit-if-changed .
name: Check Formatting
- run:
command: fvm dart run slang
name: Generate Translations
- run:
command: cp .env.example .env
name: Apply Example Environment
- prepare_project
- run:
command: fvm flutter analyze --fatal-infos --fatal-warnings
name: Check Analyzer and Linting
Expand Down
8 changes: 8 additions & 0 deletions .circleci/src/commands/prepare_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
steps:
- run:
name: Generate Translations
command: fvm dart run slang
- run:
name: Apply Example Environment
# TODO Supply correct env
command: cp .env.example .env
1 change: 1 addition & 0 deletions .circleci/src/jobs/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:
fvm flutter pub get --enforce-lockfile
fvm flutter precache --android
working_directory: android
- prepare_project
# - run:
# name: '[FL] Prepare Android Keystore'
# command: bundle exec fastlane keystore
Expand Down
7 changes: 1 addition & 6 deletions .circleci/src/jobs/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ steps:
- run:
name: Check Formatting
command: fvm dart format -l 120 -o none --set-exit-if-changed .
- run:
name: Generate Translations
command: fvm dart run slang
- run:
name: Apply Example Environment
command: cp .env.example .env
- prepare_project
- run:
name: Check Analyzer and Linting
command: fvm flutter analyze --fatal-infos --fatal-warnings
Expand Down

0 comments on commit ff51bb8

Please sign in to comment.