Skip to content

Commit

Permalink
Updated config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FebrianDev committed Jan 12, 2022
1 parent a22cad6 commit 4f830bb
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs

orbs:
android: circleci/[email protected]

jobs:
say-hello:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
build:
executor: android/android
steps:
- checkout
- restore_cache:
key: android-orb-v1-
- run:
name: "Say hello"
command: "echo Hello, World!"

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
say-hello-workflow:
jobs:
- say-hello
name: Chmod permissions
command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
key: 'android-orb-v1-{{ epoch }}'
paths:
- ~/.android/build-cache
- ~/.android/cache
- run:
name: Run Build
command: ./gradlew build
- store_artifacts:
path: app/build/reports
destination: reports
- run:
name: Run Tests
command: ./gradlew lint test
- store_test_results:
path: app/build/test-results
- store_artifacts:
path: app/build/outputs/apk/debug/
destination: artifact-file

0 comments on commit 4f830bb

Please sign in to comment.