mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-01-31 02:41:47 +00:00
yaml update
This commit is contained in:
@@ -1,30 +1,31 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
working_directory: ~/code
|
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-29
|
- image: circleci/android:api-29 # gcloud is baked into this image
|
||||||
environment:
|
|
||||||
JVM_OPTS: -Xmx3200m
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: chmod permissions
|
name: Build debug APK and release APK
|
||||||
command: chmod +x ./gradlew
|
command: |
|
||||||
|
./gradlew :app:assembleDebug
|
||||||
|
./gradlew :app:assembleDebugAndroidTest
|
||||||
- run:
|
- run:
|
||||||
name: Download Dependencies
|
name: Store Google Service Account
|
||||||
command: ./gradlew androidDependencies
|
command: echo $GCLOUD_SERVICE_KEY > ${HOME}/gcloud-service-key.json
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- ~/.gradle
|
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Run Tests
|
name: Authorize gcloud and set config defaults
|
||||||
command: ./gradlew lint test
|
command: |
|
||||||
- store_artifacts:
|
sudo gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json
|
||||||
path: app/build/reports
|
sudo gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
|
||||||
destination: reports
|
- run:
|
||||||
- store_test_results:
|
name: Test with Firebase Test Lab
|
||||||
path: app/build/test-results
|
command: >
|
||||||
|
sudo gcloud firebase test android run \
|
||||||
|
--app <local_server_path>/<app_apk>.apk \
|
||||||
|
--test <local_server_path>/<app_test_apk>.apk \
|
||||||
|
--results-bucket cloud-test-${GOOGLE_PROJECT_ID}
|
||||||
|
- run:
|
||||||
|
name: Install gsutil dependency and copy test results data
|
||||||
|
command: |
|
||||||
|
sudo pip install -U crcmod
|
||||||
|
sudo gsutil -m cp -r -U `sudo gsutil ls gs://[BUCKET_NAME]/[OBJECT_NAME] | tail -1` ${CIRCLE_ARTIFACTS}/ | true
|
||||||
|
|||||||
Reference in New Issue
Block a user