Skip to content

Commit

Permalink
Updated CircleCI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 7, 2023
1 parent 01c19ad commit 282205b
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:9.0.4
- image: cimg/openjdk:17.0.9

working_directory: ~/repo

Expand All @@ -17,15 +17,21 @@ jobs:

steps:
- checkout

- run: sed -i "s|JDK_home|$JAVA_HOME|g" ci-toolchains.xml

- run:
name: Adjusting toolchain
command: sed -i "s|JDK_home|$JAVA_HOME|g" ci-toolchains.xml

# run tests!
- run: mvn integration-test -t ci-toolchains.xml
- run:
name: Running tests
command: mvn integration-test -t ci-toolchains.xml


deployment:
docker:
# specify the version you desire here
- image: circleci/openjdk:9.0.4
- image: cimg/openjdk:17.0.9

working_directory: ~/repo

Expand All @@ -36,10 +42,15 @@ jobs:
steps:
- checkout

- run: sed -i "s|JDK_home|$JAVA_HOME|g" ci-toolchains.xml
- run:
name: Adjusting toolchain
command: sed -i "s|JDK_home|$JAVA_HOME|g" ci-toolchains.xml

# run deployment!
- run: mvn deploy -Dmaven.test.skip -DcreateDocs=true -s settings.xml -t ci-toolchains.xml
- run:
name: Deploying snapshots
command: mvn deploy -Dmaven.test.skip -DcreateDocs=true -s settings.xml -t ci-toolchains.xml

workflows:
version: 2
build_deploy:
Expand Down

0 comments on commit 282205b

Please sign in to comment.