Files
prometheus-android-exporter/.circleci/config.yml
Martin Ptáček 0ef86ed2d9 repo polishing
2023-07-30 14:12:35 +02:00

44 lines
858 B
YAML

# author: Martin Ptacek
# CI/CD configuration file
# Run linter ant the tests and build it
version: 2.1
orbs:
android: circleci/android@2.3.0
jobs:
lint-and-test-and-build:
executor:
name: android/android-machine
tag: '2023.04.1'
resource-class: large
steps:
- checkout
# lint
- android/restore-gradle-cache
- run:
name: Run linter
command: cd client && ./gradlew lintDebug
- android/save-gradle-cache
# unit tests
- run:
name: Unit tests
command: cd client && ./gradlew testDebugUnitTest
# build it
- android/restore-build-cache
- run:
name: Build
command: cd client && ./gradlew build
- android/save-build-cache
workflows:
build_and_test:
jobs:
- lint-and-test-and-build