Skip to content
Snippets Groups Projects
Commit a2567a70 authored by Neda Moeini's avatar Neda Moeini
Browse files

Added postgres service to the gitlab-ci.

parent 59a09c25
No related branches found
No related tags found
No related merge requests found
Pipeline #83868 failed
This commit is part of merge request !60. Comments created here will be created in the context of that merge request.
...@@ -13,9 +13,16 @@ run-tox-pipeline: ...@@ -13,9 +13,16 @@ run-tox-pipeline:
- docker-executor - docker-executor
image: python:3.10 image: python:3.10
services:
- postgres:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
POSTGRES_DB: postgres
POSTGRES_USER: nwa
POSTGRES_PASSWORD: nwa
DATABASE_URL: 'postgresql://nwa:nwa@postgres:5432/postgres'
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages # Pip's cache doesn't store the python packages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment