Configure ci

This commit is contained in:
Mikołaj Pich 2018-08-20 21:10:40 +02:00
parent cc03ec6cd3
commit 1b8c34677f
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 49 additions and 1 deletions

40
.circleci/config.yml Normal file
View file

@ -0,0 +1,40 @@
version: 2
jobs:
test:
working_directory: ~/api
docker:
- image: circleci/openjdk:8-jdk-stretch
steps:
- checkout
- restore_cache:
key: cache-{{ checksum "build.gradle" }}
- run: ./gradlew build -x check --no-daemon --stacktrace --console=plain -PdisablePreDex
- save_cache:
paths:
- ~/.gradle
key: cache-{{ checksum "build.gradle" }}
- run: ./gradlew check jacocoTestReport --no-daemon --stacktrace --console=plain -PdisablePreDex
- run: bash <(curl -s https://codecov.io/bash)
- store_test_results:
path: ./build/test-results
- store_artifacts:
path: ./build/reports/jacoco/test
- store_artifacts:
path: ./build/libs/api-0.1.0-SNAPSHOT.jar
workflows:
version: 2
test:
jobs:
- test

View file

@ -1 +1,8 @@
# api
# api
# Wulkanowy
[![CircleCI](https://img.shields.io/circleci/project/github/wulkanowy/api/master.svg?style=flat-square)](https://circleci.com/gh/wulkanowy/api)
[![Codecov](https://img.shields.io/codecov/c/github/wulkanowy/api/master.svg?style=flat-square)](https://codecov.io/gh/wulkanowy/api)
[![Bintray](https://img.shields.io/bintray/v/wulkanowy/wulkanowy/api.svg?style=flat-square)](https://bintray.com/wulkanowy/wulkanowy/api)
[![Discord](https://img.shields.io/discord/390889354199040011.svg?style=flat-square)](https://discord.gg/vccAQBr)

View file

@ -1,6 +1,7 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.2.51'
id 'jacoco'
}
group 'io.github.wulkanowy'