Skip to content

Commit

Permalink
chore: test with pg container
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Dec 4, 2023
1 parent 60ef7af commit d60178e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
docker-run-tests:
DOCKER_BUILDKIT=1 docker build -f Dockerfile.UnitTests .
docker-run-tests: db
trap ./test.sh EXIT
docker-compose stop

db:
docker-compose up -d db
Expand Down
8 changes: 4 additions & 4 deletions backend/src/test/resources/roman-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jerseyClient:
- TLSv1.2

database:
driverClass: org.h2.Driver
user: sa
password: sa
url: jdbc:h2:./target/test
driverClass: org.postgresql.Driver
user: roman
password: roman
url: jdbc:postgresql://localhost:5432/roman

token: dummy
# used to sign JWT
Expand Down
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

DOCKER_BUILDKIT=1 docker build -f Dockerfile.UnitTests . --network host

0 comments on commit d60178e

Please sign in to comment.