Local testing

This commit is contained in:
2023-08-03 22:05:35 +01:00
parent cd2f90d6ef
commit 2ccf734428
5 changed files with 50 additions and 39 deletions

View File

@@ -26,6 +26,7 @@ commands:
command: |
sudo chmod +x ./gradlew
./gradlew androidDependencies
- android/save-gradle-cache
# Setup files for build.
- run:
name: Setup variables for build
@@ -125,10 +126,10 @@ jobs:
steps:
# Checkout the code and its submodule as the first step.
- setup_repo
- run_tests:
flavour: << parameters.flavour >>
- run_ui_tests:
flavour: << parameters.flavour >>
# - run_tests:
# flavour: << parameters.flavour >>
# - run_ui_tests:
# flavour: << parameters.flavour >>
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
@@ -137,37 +138,41 @@ workflows:
jobs:
- build-and-test:
flavour: "Driver"
filters:
branches:
ignore:
- main_admin
# filters:
# branches:
# ignore:
# - main_admin
- android/deploy-to-play-store:
filters:
branches:
only:
- main_driver
- circleci_branch_filter_fix
requires:
- build-and-test
executor:
name: android/android-machine
tag: 2023.05.1
keystore-location: "./app/keystore.jks"
release-keystore: "keystore.jks"
lane-name: deployDriver
build-release-admin:
jobs:
- build-and-test:
flavour: "Admin"
filters:
branches:
ignore:
- main_driver
- android/deploy-to-play-store:
filters:
branches:
only:
- main_admin
requires:
- build-and-test
executor:
name: android/android-machine
tag: 2023.05.1
lane-name: deployAdmin
# build-release-admin:
# jobs:
# - build-and-test:
# flavour: "Admin"
# filters:
# branches:
# ignore:
# - main_driver
# - android/deploy-to-play-store:
# filters:
# branches:
# only:
# - main_admin
# requires:
# - build-and-test
# executor:
# name: android/android-machine
# tag: 2023.05.1
# keystore-location: "keystore.jks"
# lane-name: deployAdmin