From 6507c315d624fc7441ca968b6cc7c1b2a8ab9201 Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 19:18:01 -0500 Subject: [PATCH 01/10] Add .circleci/config.yml --- .circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7dbddd5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +# Java Gradle CircleCI 2.0 configuration file +# See: https://circleci.com/docs/2.0/language-java/ +version: 2 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + build: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + JVM_OPTS: -Xmx3200m + TERM: dumb + # Add steps to the job + # See: https://circleci.com/docs/2.0/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 dependencies + + - save_cache: + paths: + - ~/.gradle + key: v1-dependencies-{{ checksum "build.gradle" }} + + # run tests! + - run: gradle test From 8184135f6831f8835dd44891e04b96dee7c93fb2 Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:26:13 -0500 Subject: [PATCH 02/10] Update config.yml --- .circleci/config.yml | 64 +++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7dbddd5..8ea8ffe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,46 +1,36 @@ -# Java Gradle CircleCI 2.0 configuration file -# See: https://circleci.com/docs/2.0/language-java/ -version: 2 +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - build: - # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. - # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + # Below is the definition of your job to build and test your app, you can rename and customize it as you want. + build-and-test: + # These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/ + # You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # Be sure to update the Docker image tag below to openjdk version of your application. + # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk docker: - # specify the version you desire here - - image: circleci/openjdk:8-jdk - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 - - working_directory: ~/repo - - environment: - # Customize the JVM maximum heap limit - JVM_OPTS: -Xmx3200m - TERM: dumb + - image: cimg/openjdk:11.0 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: + # Checkout the code as the first step. - 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 dependencies - - - save_cache: - paths: - - ~/.gradle - key: v1-dependencies-{{ checksum "build.gradle" }} - - # run tests! - - run: gradle test + # Use mvn clean and package as the standard maven build phase + - run: + name: Build + command: mvn -B -DskipTests clean package + # Then run your tests! + - run: + name: Test + command: mvn test + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + sample: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. + jobs: + - build-and-test From fd75d50214e5ae3c63f9ba70414807785a0f1e48 Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:29:52 -0500 Subject: [PATCH 03/10] Add .circleci/config.yml From 886905fc903d7830f2ed50772d0a7c0d50e9a424 Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:36:39 -0500 Subject: [PATCH 04/10] Update config.yml --- .circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ea8ffe..f888342 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,12 @@ jobs: # Use mvn clean and package as the standard maven build phase - run: name: Build - command: mvn -B -DskipTests clean package + command: mvn -B -DskipTests install + + - run: + name: Deploy + command: mvn liberty:run-server -B -DskipTests + # Then run your tests! - run: name: Test From f9e191da3d6e251dc9f2deccb0c59051a82c61c0 Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:38:03 -0500 Subject: [PATCH 05/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f888342..c1581ba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,7 @@ jobs: name: Build command: mvn -B -DskipTests install - - run: + - run: name: Deploy command: mvn liberty:run-server -B -DskipTests From 4bbdfc756f88799fc20701d3b42dfc7645f68f1f Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:42:27 -0500 Subject: [PATCH 06/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c1581ba..d24a01e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: # Be sure to update the Docker image tag below to openjdk version of your application. # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk docker: - - image: cimg/openjdk:11.0 + - image: cimg/openjdk:8u102-jre # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From f6c55d1afed732ba71e1b7f2d39e7336e7244d9b Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:43:15 -0500 Subject: [PATCH 07/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d24a01e..472c68e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: # Be sure to update the Docker image tag below to openjdk version of your application. # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk docker: - - image: cimg/openjdk:8u102-jre + - image: cimg/openjdk:1.8 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From 166c99a34b127439cfefe9ec049cb0f1969afdab Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:45:32 -0500 Subject: [PATCH 08/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 472c68e..14e4627 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: # Be sure to update the Docker image tag below to openjdk version of your application. # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk docker: - - image: cimg/openjdk:1.8 + - image: cimg/openjdk:8.0.302 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From ee2e9b18b1405531c3a8c8e80c4d66c8e7d93c9b Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:55:01 -0500 Subject: [PATCH 09/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 14e4627..2eeec1d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,7 @@ jobs: - run: name: Deploy - command: mvn liberty:run-server -B -DskipTests + command: mvn liberty:run-server test # Then run your tests! - run: From a1bac98eb65e9d2c8c9f7c1624f24cd5804b162a Mon Sep 17 00:00:00 2001 From: Jam1010 <35550464+Jam1010@users.noreply.github.com> Date: Wed, 20 Oct 2021 21:00:16 -0500 Subject: [PATCH 10/10] Update config.yml --- .circleci/config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2eeec1d..15646f9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,11 +22,7 @@ jobs: - run: name: Build command: mvn -B -DskipTests install - - - run: - name: Deploy - command: mvn liberty:run-server test - + # Then run your tests! - run: name: Test