Local testing

This commit is contained in:
2023-08-05 15:48:17 +01:00
parent 8c09bef2c7
commit e179241a42

View File

@@ -14,12 +14,6 @@ commands:
description: checkout repo and android dependencies description: checkout repo and android dependencies
steps: steps:
- checkout - checkout
- run:
name: Setup subtree for test data
command: |
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_EMAIL"
git subtree add --prefix=driver_app_data https://github.com/hmalik144/driver_app_data main
# Setup files for build. # Setup files for build.
- run: - run:
name: Setup variables for build name: Setup variables for build
@@ -63,6 +57,15 @@ commands:
steps: steps:
# Download and cache dependencies # Download and cache dependencies
- build_gradle - build_gradle
- run:
name: Setup subtree for test data
command: |
# mkdir -p ~/.ssh
# echo 'github.com ssh-rsa b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCC2KGHuwNI211p8ItXILznAAAAEAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAILp1lkgYhIhX9ivOhrjhxmiC8N6z1uqXAefdntBg0svGAAAAoEwY/R7/AMpoatHa7ieunezMYpkWaVveLFMP142wsfwuPecimHkoElVKaGq9SFKHMqmp2kK0CS4r7MsH5hs3DlCMrcrR5bAyG4h2/mxDCAGERpMBQ5LKQUW52cx3CSZP2pjzb8Wu9iS2eDKZVhyGD0igFjLBtT1vKnqQ+n59CjS79dsrXZUtyzc0/mCgbBnqj0Iu/rY2HwfLVuPYXKaz9Zs=' >> ~/.ssh/known_hosts
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_EMAIL"
git remote add -f driver_app_data https://github.com/hmalik144/driver_app_data.git
git subtree add --prefix=driver_app_data https://github.com/hmalik144/driver_app_data main --squash
- restore_cache: - restore_cache:
keys: keys:
- emulator-cache-v1- - emulator-cache-v1-
@@ -122,11 +125,6 @@ commands:
# The next step will run the unit tests # The next step will run the unit tests
- android/decode-keystore: - android/decode-keystore:
keystore-location: "./app/keystore.jks" keystore-location: "./app/keystore.jks"
- run:
name: files list
command: |
cd app
ls
- run: - run:
name: Setup playstore key name: Setup playstore key
command: | command: |
@@ -137,10 +135,6 @@ commands:
command: | command: |
pwd pwd
bundle exec fastlane deploy<< parameters.flavour >> bundle exec fastlane deploy<< parameters.flavour >>
- android/save-gradle-cache
- store_artifacts:
path: keystore.properties
destination: reports
- store_test_results: - store_test_results:
path: fastlane/report.xml path: fastlane/report.xml
# Define a job to be invoked later in a workflow. # Define a job to be invoked later in a workflow.
@@ -165,8 +159,8 @@ jobs:
- setup_repo - setup_repo
# - run_tests: # - run_tests:
# flavour: << parameters.flavour >> # flavour: << parameters.flavour >>
# - run_ui_tests: - run_ui_tests:
# flavour: << parameters.flavour >> flavour: << parameters.flavour >>
deploy-to-playstore: deploy-to-playstore:
parameters: parameters:
flavour: flavour:
@@ -194,7 +188,6 @@ workflows:
branches: branches:
ignore: ignore:
- main_admin - main_admin
- circleci_branch_filter_fix
- deploy-to-playstore: - deploy-to-playstore:
context: appttude context: appttude
flavour: "Driver" flavour: "Driver"
@@ -202,9 +195,8 @@ workflows:
branches: branches:
only: only:
- main_driver - main_driver
- circleci_branch_filter_fix requires:
# requires: - build-and-test
# - build-and-test
# build-release-admin: # build-release-admin:
# jobs: # jobs:
# - build-and-test: # - build-and-test: