Skip to content

Commit 6f47ceb

Browse files
committed
adding circleci config
1 parent 06af79e commit 6f47ceb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.circleci/config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/2.0/configuration-reference
3+
version: 2.1
4+
5+
# Define a job to be invoked later in a workflow.
6+
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
7+
jobs:
8+
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
9+
build-and-test:
10+
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
11+
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
12+
# Be sure to update the Docker image tag below to openjdk version of your application.
13+
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
14+
docker:
15+
- image: cimg/openjdk:17.0.0
16+
# Add steps to the job
17+
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
18+
steps:
19+
# Checkout the code as the first step.
20+
- checkout
21+
# Use mvn clean and package as the standard maven build phase
22+
- run:
23+
name: Build
24+
command: mvn -B -DskipTests clean package
25+
# Then run your tests!
26+
- run:
27+
name: Test
28+
command: mvn test
29+
30+
- run:
31+
name: IT
32+
command: mvn integration-test
33+
34+
# Invoke jobs via workflows
35+
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
36+
workflows:
37+
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
38+
# Inside the workflow, you define the jobs you want to run.
39+
jobs:
40+
- build-and-test

0 commit comments

Comments
 (0)