mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-03-18 07:26:04 +00:00
- circleci updated
This commit is contained in:
@@ -14,16 +14,22 @@ commands:
|
|||||||
description: checkout repo and android dependencies
|
description: checkout repo and android dependencies
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- android/restore-gradle-cache
|
- run:
|
||||||
build_gradle:
|
name: Give gradle permissions
|
||||||
description: Build the gradle
|
command: |
|
||||||
|
sudo chmod +x ./gradlew
|
||||||
|
assemble_app:
|
||||||
|
description: Assemble the app with flavour specified
|
||||||
|
parameters:
|
||||||
|
flavour:
|
||||||
|
type: string
|
||||||
|
default: "AtlasWeather"
|
||||||
steps:
|
steps:
|
||||||
- android/restore-gradle-cache
|
- android/restore-gradle-cache
|
||||||
- run:
|
- run:
|
||||||
name: Download Dependencies
|
name: assemble flavour
|
||||||
command: |
|
command: |
|
||||||
sudo chmod +x ./gradlew
|
./gradlew assemble<< parameters.flavour >>DebugAndroidTest
|
||||||
./gradlew androidDependencies
|
|
||||||
- android/save-gradle-cache
|
- android/save-gradle-cache
|
||||||
run_tests:
|
run_tests:
|
||||||
description: run tests for flavour specified
|
description: run tests for flavour specified
|
||||||
@@ -33,11 +39,12 @@ commands:
|
|||||||
default: "AtlasWeather"
|
default: "AtlasWeather"
|
||||||
steps:
|
steps:
|
||||||
# The next step will run the unit tests
|
# The next step will run the unit tests
|
||||||
- build_gradle
|
- assemble_app:
|
||||||
|
flavour: << parameters.flavour >>
|
||||||
- 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
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports
|
path: app/build/reports
|
||||||
destination: reports
|
destination: reports
|
||||||
@@ -50,10 +57,11 @@ commands:
|
|||||||
type: string
|
type: string
|
||||||
default: "AtlasWeather"
|
default: "AtlasWeather"
|
||||||
steps:
|
steps:
|
||||||
- build_gradle
|
- assemble_app:
|
||||||
|
flavour: << parameters.flavour >>
|
||||||
- android/start-emulator-and-run-tests:
|
- android/start-emulator-and-run-tests:
|
||||||
post-emulator-launch-assemble-command: ./gradlew assemble<< parameters.flavour >>DebugAndroidTest
|
post-emulator-launch-assemble-command: ./gradlew assemble<< parameters.flavour >>DebugAndroidTest
|
||||||
test-command: ./gradlew connected<< parameters.flavour >>DebugAndroidTest
|
test-command: ./gradlew connected<< parameters.flavour >>DebugAndroidTest --continue
|
||||||
system-image: system-images;android-26;google_apis;x86
|
system-image: system-images;android-26;google_apis;x86
|
||||||
pull-data: true
|
pull-data: true
|
||||||
pull-data-path: /sdcard/Android/data/com.appttude.h_mal.<< parameters.flavour >>/files/screengrab/en-US/images/screenshots
|
pull-data-path: /sdcard/Android/data/com.appttude.h_mal.<< parameters.flavour >>/files/screengrab/en-US/images/screenshots
|
||||||
@@ -83,7 +91,8 @@ 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
|
- assemble_app:
|
||||||
|
flavour: << parameters.flavour >>
|
||||||
- run:
|
- run:
|
||||||
name: Run fastlane command to deploy to playstore
|
name: Run fastlane command to deploy to playstore
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
@@ -108,15 +108,14 @@ dependencies {
|
|||||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
|
||||||
implementation 'androidx.preference:preference:1.2.1'
|
implementation 'androidx.preference:preference:1.2.1'
|
||||||
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.1'
|
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.1'
|
||||||
/ * Fragment Navigation * /
|
|
||||||
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
||||||
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
|
||||||
/ * Unit testing * /
|
/ * Unit testing * /
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
||||||
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
||||||
implementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
||||||
|
/ * Fragment Navigation * /
|
||||||
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
||||||
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
||||||
/ * android unit testing and espresso * /
|
/ * android unit testing and espresso * /
|
||||||
androidTestImplementation 'androidx.test:rules:1.5.0'
|
androidTestImplementation 'androidx.test:rules:1.5.0'
|
||||||
androidTestImplementation "androidx.test:core:1.5.0"
|
androidTestImplementation "androidx.test:core:1.5.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user