forked from DGNum/gestioCOF
Set password for redis in CI
This commit is contained in:
parent
596868f5b6
commit
4d1cb3c2d7
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ variables:
|
|||
DJANGO_SETTINGS_MODULE: "cof.settings.prod"
|
||||
DBHOST: "postgres"
|
||||
REDIS_HOST: "redis"
|
||||
REDIS_PASSWD: "dummy"
|
||||
|
||||
# Cached packages
|
||||
PYTHONPATH: "$CI_PROJECT_DIR/vendor/python"
|
||||
|
@ -33,6 +34,7 @@ before_script:
|
|||
# Remove the old test database if it has not been done yet
|
||||
- psql --username=$POSTGRES_USER --host=$DBHOST -c "DROP DATABASE IF EXISTS test_$POSTGRES_DB"
|
||||
- pip install --cache-dir vendor/pip -t vendor/python -r requirements.txt
|
||||
- redis-cli config set requirepass $REDIS_PASSWD || true
|
||||
|
||||
test:
|
||||
stage: test
|
||||
|
|
Loading…
Reference in a new issue