mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-03-18 07:26:04 +00:00
- updated config.yml
Took 14 minutes
This commit is contained in:
@@ -22,23 +22,27 @@ jobs:
|
|||||||
# Add steps to the job
|
# Add steps to the job
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
||||||
steps:
|
steps:
|
||||||
# Checkout the code as the first step.
|
|
||||||
- checkout
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
# The next step will run the unit tests
|
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||||
- 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
|
|
||||||
- run:
|
- run:
|
||||||
name: Assemble release build
|
name: Chmod permissions
|
||||||
command: |
|
command: sudo chmod +x ./gradlew
|
||||||
./gradlew assembleRelease
|
- 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
|
# Invoke jobs via workflows
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#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.
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
jobs:
|
jobs:
|
||||||
- build-and-test
|
- 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
|
||||||
Reference in New Issue
Block a user