Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
61a3bc35
Commit
61a3bc35
authored
Mar 24, 2021
by
Kenzo-Hugo Hillion
♻
Browse files
try not to wait for db in testing CI
yet another try to fix CI
parent
765b94aa
Pipeline
#51892
failed with stages
in 4 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
61a3bc35
...
...
@@ -39,11 +39,14 @@ build-frontend:
test-backend
:
image
:
$CI_REGISTRY_IMAGE/backend:${CI_COMMIT_REF_NAME}
services
:
-
postgres:1
1.4
-
postgres:1
2.2-alpine
-
redis:alpine
stage
:
test
variables
:
DATABASE_HOST
:
localhost
DATABASE_HOST
:
postgres
POSTGRES_USER
:
postgres
POSTGRES_DB
:
postgres
POSTGRES_PASSWORD
:
"
"
DJANGO_SETTINGS_MODULE
:
"
metagenedb.settings-gitlab-ci"
REDIS_HOST
:
"
localhost"
CACHE_TTL
:
"
0"
...
...
@@ -52,7 +55,7 @@ test-backend:
-
cd backend
-
pipenv install --dev --system --deploy
-
flake8 --max-line-length
120
-
until pg_isready -h ${DATABASE_HOST}; do echo waiting; sleep 2; done;
#
- until pg_isready -h ${DATABASE_HOST}; do echo waiting; sleep 2; done;
-
pytest --cov .
deploy-dev
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment