diff --git a/.circleci/config.yml b/.circleci/config.yml index d3ab08b0c..2091bc1b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,15 +6,33 @@ workflows: jobs: - check-frontend - frontend-android-build: + name: frontend-android-build-bayern-floss buildConfig: "bayern-floss" + flutterFlavor: "BayernFloss" requires: - check-frontend - frontend-android-build: + name: frontend-android-build-bayern buildConfig: "bayern" + flutterFlavor: "Bayern" requires: - check-frontend - frontend-ios-build: + name: frontend-ios-build-bayern buildConfig: "bayern" + flutterFlavor: "Bayern" + requires: + - check-frontend + - frontend-android-build: + name: frontend-android-build-nuernberg + buildConfig: "nuernberg" + flutterFlavor: "Nuernberg" + requires: + - check-frontend + - frontend-ios-build: + name: frontend-ios-build-nuernberg + buildConfig: "nuernberg" + flutterFlavor: "Nuernberg" requires: - check-frontend - backend-build @@ -175,8 +193,10 @@ jobs: buildConfig: description: "Name of the build config to use" type: string + flutterFlavor: + description: "Flutter Flavor to use" + type: string environment: - BUILD_CONFIG_NAME: << parameters.buildConfig >> GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m" -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2' resource_class: large working_directory: ~/project/frontend @@ -202,11 +222,11 @@ jobs: - run: name: Build Runner command: | - fvm --verbose flutter pub run build_runner build --define "df_build_config=name=$BUILD_CONFIG_NAME" + fvm --verbose flutter pub run build_runner build --define "df_build_config=name=<< parameters.buildConfig >>" - run: name: Build command: | - fvm --verbose flutter build apk --dart-define=environment=production --release -t lib/main.dart + fvm --verbose flutter build apk --dart-define=environment=production --flavor << parameters.flutterFlavor >> --release -t lib/main.dart - store_artifacts: path: build/app/outputs/flutter-apk/ @@ -217,9 +237,10 @@ jobs: buildConfig: description: "Name of the build config to use" type: string + flutterFlavor: + description: "Flutter Flavor to use" + type: string working_directory: ~/project/frontend - environment: - BUILD_CONFIG_NAME: << parameters.buildConfig >> steps: - checkout: path: ~/project @@ -248,12 +269,12 @@ jobs: - run: name: Build Runner command: | - fvm --verbose flutter pub run build_runner build --define "df_build_config=name=$BUILD_CONFIG_NAME" + fvm --verbose flutter pub run build_runner build --define "df_build_config=name=<< parameters.buildConfig >>" - run: name: Build command: | - app-toolbelt v0 build-config write-xcconfig "$BUILD_CONFIG_NAME" ios --directory ios/ - fvm --verbose flutter build ios --dart-define=environment=production --no-codesign --release -t lib/main.dart + app-toolbelt v0 build-config write-xcconfig "<< parameters.buildConfig >>" ios --directory ios/ + fvm --verbose flutter build ios --dart-define=environment=production --flavor << parameters.flutterFlavor >> --no-codesign --release -t lib/main.dart backend-build: environment: diff --git a/.idea/runConfigurations/Test_Backend.xml b/.idea/runConfigurations/Build_backend.xml similarity index 84% rename from .idea/runConfigurations/Test_Backend.xml rename to .idea/runConfigurations/Build_backend.xml index beec83579..e478541db 100644 --- a/.idea/runConfigurations/Test_Backend.xml +++ b/.idea/runConfigurations/Build_backend.xml @@ -1,5 +1,5 @@ - +