This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yml
40 lines (34 loc) · 1.63 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:11-jdk
- image: circleci/postgres:latest
working_directory: ~/repo
environment:
MAVEN_OPTS: -Xmx1200m
steps:
- checkout
- run: dockerize -wait tcp://localhost:5432 -timeout 1m
- run: sudo apt-get install postgresql-client
- run: psql -c "create user sample22plain with password 'sample22plain';" -U postgres -h localhost -p 5432
- run: psql -c "create database sample22plain;" -U postgres -h localhost -p 5432
- run: psql -c "grant all on database sample22plain to sample22plain;" -U postgres -h localhost -p 5432
- run: psql -c "create user sample22spring with password 'sample22spring';" -U postgres -h localhost -p 5432
- run: psql -c "create database sample22spring;" -U postgres -h localhost -p 5432
- run: psql -c "grant all on database sample22spring to sample22spring;" -U postgres -h localhost -p 5432
- run: psql -c "create user sample22jpa with password 'sample22jpa';" -U postgres -h localhost -p 5432
- run: psql -c "create database sample22jpa;" -U postgres -h localhost -p 5432
- run: psql -c "grant all on database sample22jpa to sample22jpa;" -U postgres -h localhost -p 5432
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: ./mvnw dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
# run tests!
- run: ./mvnw clean package