mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-03-18 07:26:16 +00:00
- Updated config.yml file to new template
Took 3 minutes
This commit is contained in:
@@ -1,36 +1,53 @@
|
|||||||
version: 2
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
|
# See: https://circleci.com/docs/2.0/configuration-reference
|
||||||
|
# For a detailed guide to building and testing on Android, read the docs:
|
||||||
|
# https://circleci.com/docs/2.0/language-android/ for more details.
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
|
||||||
|
# See: https://circleci.com/docs/2.0/orb-intro/
|
||||||
|
orbs:
|
||||||
|
android: circleci/android@1.0.3
|
||||||
|
|
||||||
|
# Define a job to be invoked later in a workflow.
|
||||||
|
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
|
||||||
working_directory: ~/code
|
build-and-test:
|
||||||
docker:
|
# These next lines define the Android machine image executor.
|
||||||
- image: circleci/android:api-29
|
# See: https://circleci.com/docs/2.0/executor-types/
|
||||||
environment:
|
executor:
|
||||||
- CIRCLE_COMPARE_URL: https://github.com/hmalik144/EasyCC_Master/compare/7e995468c9fdc5528a6d1a5489ba301bb9f14c00...14293254ec6d68b93bba50eea79df8808aec9de9
|
name: android/android-machine
|
||||||
- JVM_OPTS: -Xmx3200m
|
|
||||||
|
# Add steps to the job
|
||||||
|
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||||
- run:
|
- run:
|
||||||
name: Chmod permissions
|
name: Chmod permissions
|
||||||
command: sudo chmod +x ./gradlew
|
command: sudo chmod +x ./gradlew
|
||||||
- run:
|
- run:
|
||||||
name: Download Dependencies
|
name: Download Dependencies
|
||||||
command: ./gradlew androidDependencies
|
command: ./gradlew androidDependencies
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.gradle
|
- ~/.gradle
|
||||||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||||
- run:
|
- run:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
command: ./gradlew lint test
|
command: ./gradlew lint test
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/reports
|
path: app/build/reports
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: app/build/test-results
|
path: app/build/test-results
|
||||||
|
|
||||||
|
# Invoke jobs via workflows
|
||||||
|
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
|
||||||
workflow:
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build-and-test
|
||||||
|
|||||||
Reference in New Issue
Block a user