Skip to content

Commit

Permalink
Added basic Circle CI config file
Browse files Browse the repository at this point in the history
  • Loading branch information
matusnovak committed Jul 21, 2020
1 parent 947a099 commit 4107e5a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,31 @@
version: 2.0

jobs:
test:
docker:
- image: circleci/openjdk:8-jdk-stretch

steps:
- checkout

- restore_cache:
key: hotel-booking-{{ checksum "pom.xml" }}

- run:
name: Go Offline
command: mvn dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: hotel-booking-{{ checksum "pom.xml" }}

- run:
name: Unit Tests
command: mvn test

workflows:
version: 2
build_and_test:
jobs:
- test

0 comments on commit 4107e5a

Please sign in to comment.