From 1b8c34677f23a06cb1fc972d2b0930e8723952c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Mon, 20 Aug 2018 21:10:40 +0200 Subject: [PATCH] Configure ci --- .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++ README.md | 9 ++++++++- build.gradle | 1 + 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..01238e0f --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/README.md b/README.md index e84f94cf..4a3c7817 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ -# api \ No newline at end of file +# 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) diff --git a/build.gradle b/build.gradle index bb33fe24..bbc9ef66 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version '1.2.51' + id 'jacoco' } group 'io.github.wulkanowy'