mirror of
https://github.com/ultrasonic/ultrasonic
synced 2024-12-14 18:05:10 +01:00
c917bcb1a6
Also updated ktlint-gradle to 2.3.0 version. Added ktlint reports to circle CI. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/android:api-26-alpha
|
|
working_directory: ~/ultrasonic
|
|
envoronment:
|
|
JVM_OPTS: -Xmx3200m
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: gradle-cache-{{ checksum "dependencies.gradle" }}
|
|
- run:
|
|
name: checkstyle
|
|
command: ./gradlew -Pqc ktlintCheck
|
|
- run:
|
|
name: build
|
|
command: ./gradlew assembleDebug
|
|
- run:
|
|
name: unit-tests
|
|
command: |
|
|
./gradlew :subsonic-api:test :ultrasonic:testDebugUnitTest
|
|
./gradlew jacocoFullReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- run:
|
|
name: lint
|
|
command: ./gradlew lint
|
|
- run:
|
|
name: static analysis
|
|
command: ./gradlew -Pqc detektCheck
|
|
- save_cache:
|
|
paths:
|
|
- ~/.gradle
|
|
key: gradle-cache-{{ checksum "dependencies.gradle" }}
|
|
- store_artifacts:
|
|
path: ultrasonic/build/reports
|
|
path: subsonic-api/build/reports
|
|
destination: reports
|
|
- store_artifacts:
|
|
path: build/reports/jacoco/jacocoFullReport/
|
|
|