Skip to content
Snippets Groups Projects
Commit d5aaaa3e authored by leo.harb's avatar leo.harb
Browse files
parents db3dc60d 47a2a08d
No related branches found
No related tags found
No related merge requests found
Pipeline #37307 canceled
...@@ -8,25 +8,6 @@ stages: ...@@ -8,25 +8,6 @@ stages:
- build - build
- deploy - deploy
variables:
SPRING_PROFILES_ACTIVE: ci
POSTGRES_DB: tunesphere_db
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
default-postgres:
stage: dependencies
services:
- postgres
image: postgres
variables:
PGPORT: "5432"
script:
# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
# FRONTEND: Installation des dépendances # FRONTEND: Installation des dépendances
install-frontend: install-frontend:
stage: dependencies stage: dependencies
...@@ -82,23 +63,7 @@ install-backend: ...@@ -82,23 +63,7 @@ install-backend:
key: "backend-deps" key: "backend-deps"
paths: paths:
- .m2/repository - .m2/repository
# BACKEND: Tests unitaires avec POSTGRES_SQL
test-backend:
stage: quality
image: maven:3.6.3-openjdk-17
needs: ["install-backend"]
services:
- postgres
script:
- cd ./backend/
- mvn clean test
cache:
key: "backend-deps"
paths:
- .m2/repository
policy: pull
# BACKEND: Build # BACKEND: Build
build-backend: build-backend:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment