Skip to content

Commit

Permalink
circle ci deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacalia committed Oct 28, 2023
1 parent 1b8f15c commit e50d7f3
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: 2.1
orbs:
codecov: codecov/codecov@3
jobs:
build-and-deploy:
docker:
- image: cimg/openjdk:11.0-browsers
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- checkout
- run: chmod +x ./gradlew
- run: ./gradlew dependencies
- run: xvfb-run -a ./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

- run: mkdir -p projectpage
- run: cp -rv build/reports/* projectpage
- run: cp -rv build/docs/* projectpage
- run: cp -rv docs/* projectpage
# force push to the repo gh-pages branch

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

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

build-workflow:
jobs:
- build:
filters:
tags:
# not tag
ignore: /.*/

0 comments on commit e50d7f3

Please sign in to comment.