- updated config.yml

Took 14 minutes
This commit is contained in:
2022-02-06 20:26:19 +00:00
parent c164144c0d
commit 9b0294b5e0

View File

@@ -22,23 +22,27 @@ jobs:
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
# The next step will run the unit tests
- android/run-tests:
test-command: ./gradlew lint test --stacktrace --info --continue
# Then start the emulator and run the Instrumentation tests!
- android/start-emulator-and-run-tests:
test-command: ./gradlew connectedDebugAndroidTest
system-image: system-images;android-25;google_apis;x86
# And finally run the release build
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Assemble release build
command: |
./gradlew assembleRelease
name: Chmod permissions
command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
@@ -47,3 +51,43 @@ workflows:
# Inside the workflow, you define the jobs you want to run.
jobs:
- build-and-test
#version: 2
#jobs:
# build:
# working_directory: ~/code
# docker:
# - image: circleci/android:api-29
# environment:
# - CIRCLE_COMPARE_URL: https://github.com/hmalik144/EasyCC_Master/compare/7e995468c9fdc5528a6d1a5489ba301bb9f14c00...14293254ec6d68b93bba50eea79df8808aec9de9
# - JVM_OPTS: -Xmx3200m
# steps:
# - checkout
# - restore_cache:
# key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Chmod permissions
# command: sudo chmod +x ./gradlew
# - run:
# name: Download Dependencies
# command: ./gradlew androidDependencies
# - save_cache:
# paths:
# - ~/.gradle
# key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Run Tests
# command: ./gradlew lint test
# - store_artifacts:
# path: app/build/reports
# destination: reports
# - store_test_results:
# path: app/build/test-results
#workflows:
# version: 2
# workflow:
# jobs:
# - build