mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 15:36:03 +00:00
Local testing
This commit is contained in:
@@ -26,6 +26,7 @@ commands:
|
|||||||
command: |
|
command: |
|
||||||
sudo chmod +x ./gradlew
|
sudo chmod +x ./gradlew
|
||||||
./gradlew androidDependencies
|
./gradlew androidDependencies
|
||||||
|
- android/save-gradle-cache
|
||||||
# Setup files for build.
|
# Setup files for build.
|
||||||
- run:
|
- run:
|
||||||
name: Setup variables for build
|
name: Setup variables for build
|
||||||
@@ -125,10 +126,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Checkout the code and its submodule as the first step.
|
# Checkout the code and its submodule as the first step.
|
||||||
- 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 >>
|
||||||
# Invoke jobs via workflows
|
# Invoke jobs via workflows
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
@@ -137,37 +138,41 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- build-and-test:
|
- build-and-test:
|
||||||
flavour: "Driver"
|
flavour: "Driver"
|
||||||
filters:
|
# filters:
|
||||||
branches:
|
# branches:
|
||||||
ignore:
|
# ignore:
|
||||||
- main_admin
|
# - main_admin
|
||||||
- android/deploy-to-play-store:
|
- android/deploy-to-play-store:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- main_driver
|
- main_driver
|
||||||
|
- circleci_branch_filter_fix
|
||||||
requires:
|
requires:
|
||||||
- build-and-test
|
- build-and-test
|
||||||
executor:
|
executor:
|
||||||
name: android/android-machine
|
name: android/android-machine
|
||||||
tag: 2023.05.1
|
tag: 2023.05.1
|
||||||
|
keystore-location: "./app/keystore.jks"
|
||||||
|
release-keystore: "keystore.jks"
|
||||||
lane-name: deployDriver
|
lane-name: deployDriver
|
||||||
build-release-admin:
|
# build-release-admin:
|
||||||
jobs:
|
# jobs:
|
||||||
- build-and-test:
|
# - build-and-test:
|
||||||
flavour: "Admin"
|
# flavour: "Admin"
|
||||||
filters:
|
# filters:
|
||||||
branches:
|
# branches:
|
||||||
ignore:
|
# ignore:
|
||||||
- main_driver
|
# - main_driver
|
||||||
- android/deploy-to-play-store:
|
# - android/deploy-to-play-store:
|
||||||
filters:
|
# filters:
|
||||||
branches:
|
# branches:
|
||||||
only:
|
# only:
|
||||||
- main_admin
|
# - main_admin
|
||||||
requires:
|
# requires:
|
||||||
- build-and-test
|
# - build-and-test
|
||||||
executor:
|
# executor:
|
||||||
name: android/android-machine
|
# name: android/android-machine
|
||||||
tag: 2023.05.1
|
# tag: 2023.05.1
|
||||||
lane-name: deployAdmin
|
# keystore-location: "keystore.jks"
|
||||||
|
# lane-name: deployAdmin
|
||||||
@@ -6,9 +6,9 @@ plugins {
|
|||||||
id 'androidx.navigation.safeargs'
|
id 'androidx.navigation.safeargs'
|
||||||
}
|
}
|
||||||
|
|
||||||
def relStorePassword = System.getenv("RELEASE_STORE_PASSWORD")
|
def keyStorePropertiesFile = rootProject.file("keystore.properties")
|
||||||
def relKeyPassword = System.getenv("RELEASE_KEY_PASSWORD")
|
def keyStoreProperties = new Properties()
|
||||||
def relKeyAlias = System.getenv("RELEASE_KEY_ALIAS")
|
keyStoreProperties.load(new FileInputStream(keyStorePropertiesFile))
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 31
|
compileSdkVersion 31
|
||||||
@@ -37,10 +37,10 @@ android {
|
|||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
storePassword relStorePassword
|
keyAlias keyStoreProperties['releaseKeyAlias']
|
||||||
keyPassword relKeyPassword
|
keyPassword keyStoreProperties['releaseKeyPassword']
|
||||||
keyAlias relKeyAlias
|
storeFile file(keyStoreProperties['releaseKeyStore'])
|
||||||
storeFile file('./keystore')
|
storePassword keyStoreProperties['releaseStorePassword']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
circleci config process .circleci/local_config.yml > process.yml
|
circleci config process .circleci/local_config.yml > process.yml
|
||||||
circleci local execute -c process.yml build-and-test-1 -e $GIT_EMAIL="h.malik144@gmail.com" -e BASE64_KEYSTORE=$BASE64_KEYSTORE -e RELEASE_KEYSTORE=$RELEASE_KEYSTORE -e RELEASE_STORE_PASSWORD=$RELEASE_STORE_PASSWORD -e RELEASE_KEY_PASSWORD=$RELEASE_KEY_PASSWORD -e RELEASE_KEY_ALIAS=$RELEASE_KEY_ALIAS -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e GOOGLE_SERVICES_KEY=$DRIVER_GOOGLE_SERVICES
|
circleci local execute -v $(pwd):/root/repo -c process.yml deploy-to-play-store-1 -e $GIT_EMAIL="h.malik144@gmail.com" -e BASE64_KEYSTORE=$BASE64_KEYSTORE -e RELEASE_KEYSTORE=$RELEASE_KEYSTORE -e RELEASE_STORE_PASSWORD=$RELEASE_STORE_PASSWORD -e RELEASE_KEY_PASSWORD=$RELEASE_KEY_PASSWORD -e RELEASE_KEY_ALIAS=$RELEASE_KEY_ALIAS -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e DRIVER_GOOGLE_SERVICES_B64=$DRIVER_GOOGLE_SERVICES_B64
|
||||||
|
|||||||
@@ -32,13 +32,19 @@ platform :android do
|
|||||||
|
|
||||||
desc "Deploy a new version of Driver to the Google Play"
|
desc "Deploy a new version of Driver to the Google Play"
|
||||||
lane :deployDriver do
|
lane :deployDriver do
|
||||||
gradle(task: "clean bundle", flavor: "driver", build_type: "Release")
|
gradle(
|
||||||
upload_to_play_store(aab: "app/build/outputs/bundle/driverRelease/app-driver-release.aab", json_key: "google-play-key.json", package_name: "h_mal.appttude.com.driver")
|
task: "clean bundle",
|
||||||
|
flavor: "Driver",
|
||||||
|
build_type: "Release")
|
||||||
|
upload_to_play_store(
|
||||||
|
aab: "app/build/outputs/bundle/driverRelease/app-driver-release.aab",
|
||||||
|
json_key: "google-play-key.json",
|
||||||
|
package_name: "h_mal.appttude.com.driver")
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Deploy a new version of Admin to the Google Play"
|
desc "Deploy a new version of Admin to the Google Play"
|
||||||
lane :deployAdmin do
|
lane :deployAdmin do
|
||||||
gradle(task: "clean bundle", flavor: "admin", build_type: "Release")
|
gradle(task: "clean bundle", flavor: "Admin", build_type: "Release")
|
||||||
upload_to_play_store(aab: "app/build/outputs/bundle/adminRelease/app-admin-release.aab", json_key: "google-play-key.json", package_name: "h_mal.appttude.com.driver.admin")
|
upload_to_play_store(aab: "app/build/outputs/bundle/adminRelease/app-admin-release.aab", json_key: "google-play-key.json", package_name: "h_mal.appttude.com.driver.admin")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
#Mon Feb 13 21:54:13 GMT 2023
|
#Mon Feb 13 21:54:13 GMT 2023
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
Reference in New Issue
Block a user