Skip to content

Commit fa402f0

Browse files
committed
Add .circleci/config.yml
1 parent 6fb2931 commit fa402f0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
jobs:
6+
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
7+
build-and-test:
8+
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
9+
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
10+
# Be sure to update the Docker image tag below to openjdk version of your application.
11+
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
12+
docker:
13+
- image: cimg/openjdk:11.0
14+
steps:
15+
# Checkout the code as the first step.
16+
- checkout
17+
# Use mvn clean and package as the standard maven build phase
18+
- run:
19+
name: Build
20+
command: mvn -B -DskipTests clean package
21+
# Then run your tests!
22+
- run:
23+
name: Test
24+
command: mvn test
25+
26+
workflows:
27+
# Below is the definition of your workflow.
28+
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above.
29+
# CircleCI will run this workflow on every commit.
30+
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
31+
sample:
32+
jobs:
33+
- build-and-test

0 commit comments

Comments
 (0)