mirror of
https://github.com/hmalik144/Driver.git
synced 2026-01-31 02:41:46 +00:00
Local testing
This commit is contained in:
@@ -26,6 +26,16 @@ commands:
|
|||||||
command: |
|
command: |
|
||||||
echo "$GOOGLE_SERVICES_KEY" > "app/google-services.json"
|
echo "$GOOGLE_SERVICES_KEY" > "app/google-services.json"
|
||||||
- android/restore-gradle-cache
|
- android/restore-gradle-cache
|
||||||
|
build_gradle:
|
||||||
|
description: Build the gradle
|
||||||
|
steps:
|
||||||
|
- android/restore-gradle-cache
|
||||||
|
- run:
|
||||||
|
name: Download Dependencies
|
||||||
|
command: |
|
||||||
|
sudo chmod +x ./gradlew
|
||||||
|
./gradlew androidDependencies
|
||||||
|
- android/save-gradle-cache
|
||||||
run_tests:
|
run_tests:
|
||||||
description: run non-instrumentation tests for flavour specified
|
description: run non-instrumentation tests for flavour specified
|
||||||
parameters:
|
parameters:
|
||||||
@@ -34,11 +44,11 @@ commands:
|
|||||||
default: "Driver"
|
default: "Driver"
|
||||||
steps:
|
steps:
|
||||||
# The next step will run the unit tests
|
# The next step will run the unit tests
|
||||||
|
- build_gradle
|
||||||
- run:
|
- run:
|
||||||
name: Run non-instrumentation unit tests
|
name: Run non-instrumentation unit tests
|
||||||
command: |
|
command: |
|
||||||
./gradlew test<< parameters.flavour >>DebugUnitTest --continue
|
./gradlew test<< parameters.flavour >>DebugUnitTest --continue
|
||||||
- android/save-gradle-cache
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports
|
path: app/build/reports
|
||||||
destination: reports
|
destination: reports
|
||||||
@@ -52,6 +62,7 @@ commands:
|
|||||||
default: "AtlasWeather"
|
default: "AtlasWeather"
|
||||||
steps:
|
steps:
|
||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
|
- build_gradle
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- emulator-cache-v1-
|
- emulator-cache-v1-
|
||||||
@@ -81,7 +92,6 @@ commands:
|
|||||||
paths:
|
paths:
|
||||||
- ~/.cache/firebase/emulators/
|
- ~/.cache/firebase/emulators/
|
||||||
key: emulator-cache-v1-{{ epoch }}
|
key: emulator-cache-v1-{{ epoch }}
|
||||||
- android/save-gradle-cache
|
|
||||||
# store test reports
|
# store test reports
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports/androidTests/connected
|
path: app/build/reports/androidTests/connected
|
||||||
@@ -110,12 +120,8 @@ commands:
|
|||||||
default: "Driver"
|
default: "Driver"
|
||||||
steps:
|
steps:
|
||||||
# The next step will run the unit tests
|
# The next step will run the unit tests
|
||||||
- run:
|
- android/decode-keystore:
|
||||||
name: Setup keystore
|
keystore-location: $PWD/app/keystore.jks
|
||||||
command: |
|
|
||||||
echo "$BASE64_KEYSTORE" | base64 --decode > "app/keystore.jks"
|
|
||||||
- android/create-keystore-properties:
|
|
||||||
release-keystore: $PWD/app/keystore.jks
|
|
||||||
- run:
|
- run:
|
||||||
name: files list
|
name: files list
|
||||||
command: |
|
command: |
|
||||||
@@ -125,6 +131,7 @@ commands:
|
|||||||
name: Setup playstore key
|
name: Setup playstore key
|
||||||
command: |
|
command: |
|
||||||
echo "$GOOGLE_PLAY_KEY" > "google-play-key.json"
|
echo "$GOOGLE_PLAY_KEY" > "google-play-key.json"
|
||||||
|
- build_gradle
|
||||||
- run:
|
- run:
|
||||||
name: Run fastlane command to deploy to playstore
|
name: Run fastlane command to deploy to playstore
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
Reference in New Issue
Block a user