diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-13 08:01:55 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-13 08:01:55 +0100 |
commit | 2c643a552e911be09d543d06537c7a3113f9bb93 (patch) | |
tree | b8bd28bac4bc5c1f379a5f90f9dc2dcbc6b3848e /vendor/gitlab-ci-yml/Django.gitlab-ci.yml | |
parent | bf5248ac28bf817344a8b1b4feda744a0832d32d (diff) | |
parent | d7a527163b64fa38e46fc6195fef2f5d93e47d07 (diff) | |
download | gitlab-ce-2c643a552e911be09d543d06537c7a3113f9bb93.tar.gz |
Merge branch 'master' into notebooklab-in-repo
Diffstat (limited to 'vendor/gitlab-ci-yml/Django.gitlab-ci.yml')
-rw-r--r-- | vendor/gitlab-ci-yml/Django.gitlab-ci.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/vendor/gitlab-ci-yml/Django.gitlab-ci.yml b/vendor/gitlab-ci-yml/Django.gitlab-ci.yml index b3106863cca..5ded2f5ce76 100644 --- a/vendor/gitlab-ci-yml/Django.gitlab-ci.yml +++ b/vendor/gitlab-ci-yml/Django.gitlab-ci.yml @@ -26,9 +26,24 @@ before_script: # - apt-get update -q && apt-get install nodejs -yqq - pip install -r requirements.txt +# To get Django tests to work you may need to create a settings file using +# the following DATABASES: +# +# DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.postgresql_psycopg2', +# 'NAME': 'ci', +# 'USER': 'postgres', +# 'PASSWORD': 'postgres', +# 'HOST': 'postgres', +# 'PORT': '5432', +# }, +# } +# +# and then adding `--settings app.settings.ci` (or similar) to the test command + test: variables: DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" script: - - python manage.py migrate - python manage.py test |