diff --git a/.circleci/config.yml b/.circleci/config.yml index af354c4..d8b996d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,11 @@ -version: 2 +version: 2.1 + +workflows: + my-workflow: + jobs: + - build: + context: + - Pitaya jobs: build: @@ -7,29 +14,44 @@ jobs: working_directory: ~/repo + resource_class: medium + environment: - # Customize the JVM maximum heap limit JVM_OPTS: -Xmx3200m TERM: dumb - # Add steps to the job - # See: https://circleci.com/docs/configuration-reference/#steps + steps: - checkout - # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "build.gradle" }} # fallback to using the latest cache if no exact match is found - v1-dependencies- - - run: gradle clean build -x test -i + - run: + name: Build project + command: gradle clean build -x test -i - save_cache: paths: - ~/.gradle key: v1-dependencies-{{ checksum "build.gradle" }} - # run tests! - - run: gradle check -i - - run: gradle jacocoTestReport coveralls + - run: + name: Execute unit tests + command: gradle check -i + + - run: + name: Coverage reporting + command: gradle jacocoTestReport coveralls + when: always + + - run: + name: Save test results + command: | + mkdir -p ~/test-results/junit/ + find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \; + when: always + - store_test_results: + path: ~/test-results diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 972f66f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: java - -dist: trusty - -before_install: - - chmod +x gradlew - -jdk: - - oraclejdk8 - -script: - - ./gradlew clean build -i - -after_success: - - ./gradlew jacocoTestReport coveralls diff --git a/README.md b/README.md index b3b15c0..efe4c20 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Pitaya -[![Build Status](https://travis-ci.org/osvalda/Pitaya.svg?branch=master)](https://travis-ci.org/osvalda/Pitaya) -[![Coverage Status](https://coveralls.io/repos/github/osvalda/Pitaya/badge.svg?branch=master)](https://coveralls.io/github/osvalda/Pitaya?branch=PAC-002) +[![CircleCI](https://img.shields.io/circleci/build/github/osvalda/Pitaya/master)](https://app.circleci.com/pipelines/github/osvalda/Pitaya?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/osvalda/Pitaya/badge.svg?branch=master)](https://coveralls.io/github/osvalda/Pitaya?branch=master) [![GitHub license](https://img.shields.io/github/license/spotify/scio.svg)](./LICENSE) -[![Maven Central](https://img.shields.io/maven-central/v/io.github.osvalda/Pitaya.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.osvalda%22%20AND%20a:%22Pitaya%22) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.osvalda/Pitaya.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/io.github.osvalda/Pitaya/) API coverage visualizer tool. Creates an easily readable html report based upon the executed API test cases.