Skip to content

Commit

Permalink
Circleci project setup (#73)
Browse files Browse the repository at this point in the history
CircleCI configuration
  • Loading branch information
andreacalia authored Oct 15, 2023
1 parent cdfcc17 commit f57dc48
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: 2.1
orbs:
codecov: codecov/codecov@3
jobs:
build-and-deploy:
docker:
- image: cimg/openjdk:11.0
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- checkout
- run: chmod +x ./gradlew
- run: ./gradlew dependencies
- run: ./gradlew check --stacktrace
- run: ./gradlew jacocoTestReport

- run: "[[ -n ${SIGNING_KEY_SECRING_BASE64} ]]"
- run: echo $SIGNING_KEY_SECRING_BASE64 | base64 --decode > ./signing.key.secring
- run: echo "export SIGNING_KEY_PATH=./signing.key.secring" >> "$BASH_ENV"
- run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -DDEPLOYMENT=true

build:
docker:
- image: cimg/openjdk:11.0
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- checkout
- run: chmod +x ./gradlew
- run: ./gradlew dependencies
- run: ./gradlew check --stacktrace
- run: ./gradlew jacocoTestReport
- codecov/upload

workflows:
build-and-deploy-workflow:
jobs:
- build-and-deploy:
context:
- ossgang-deploy
filters:
tags:
# any tag
only: /.*/
branches:
# no branches
ignore: /.*/

build-workflow:
jobs:
- build:
filters:
tags:
# not tag
ignore: /.*/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.com/ossgang/ossgang-commons.svg?branch=master)](https://app.travis-ci.com/ossgang/ossgang-commons)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/ossgang/ossgang-commons/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/ossgang/ossgang-commons/tree/master)
[![Codecov](https://codecov.io/gh/ossgang/ossgang-commons/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ossgang/ossgang-commons)
[![Latest release](https://img.shields.io/github/release/ossgang/ossgang-commons.svg?maxAge=1000)](https://github.com/ossgang/ossgang-commons/releases)
[![Maven Central](https://img.shields.io/maven-central/v/org.ossgang/ossgang-commons)](https://search.maven.org/artifact/org.ossgang/ossgang-commons)

Expand Down

0 comments on commit f57dc48

Please # to comment.