2017-07-30 14:53:54 +02:00
|
|
|
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
|
2017-08-09 22:02:32 +02:00
|
|
|
command: |
|
|
|
|
./gradlew :subsonic-api:test :ultrasonic:testDebugUnitTest
|
|
|
|
./gradlew jacocoFullReport
|
2017-08-11 19:46:37 +02:00
|
|
|
bash <(curl -s https://codecov.io/bash)
|
2017-07-31 22:46:37 +02:00
|
|
|
- run:
|
|
|
|
name: lint
|
|
|
|
command: ./gradlew lint
|
2017-07-30 22:26:41 +02:00
|
|
|
- run:
|
|
|
|
name: static analysis
|
|
|
|
command: ./gradlew -Pqc detektCheck
|
2017-07-30 14:53:54 +02:00
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.gradle
|
2017-07-31 22:46:37 +02:00
|
|
|
key: gradle-cache-{{ checksum "dependencies.gradle" }}
|
|
|
|
- store_artifacts:
|
|
|
|
path: ultrasonic/build/reports
|
2017-11-16 22:04:38 +01:00
|
|
|
path: subsonic-api/build/reports
|
2017-08-09 22:02:32 +02:00
|
|
|
destination: reports
|
|
|
|
- store_artifacts:
|
|
|
|
path: build/reports/jacoco/jacocoFullReport/
|
|
|
|
|