Move env back to Django Test build in Travis

This commit is contained in:
Andrew Chen Wang 2020-07-10 22:07:04 -04:00 committed by GitHub
parent 2e88782156
commit 36d446dcf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,6 @@ cache: pip
python: python:
- "3.8" - "3.8"
env:
global:
- USE_DOCKER="no"
- DATABASE_URL="postgres:///{{ cookiecutter.project_slug }}"
{% if cookiecutter.use_celery == 'y' -%}
- CELERY_BROKER_URL="redis://localhost:6379/0"
{%- endif %}
jobs: jobs:
include: include:
- name: "Linter" - name: "Linter"
@ -23,6 +15,12 @@ jobs:
- "flake8" - "flake8"
- name: "Django Test" - name: "Django Test"
env:
- USE_DOCKER="no"
- DATABASE_URL="postgres:///{{ cookiecutter.project_slug }}"
{% if cookiecutter.use_celery == 'y' -%}
- CELERY_BROKER_URL="redis://localhost:6379/0"
{%- endif %}
services: services:
- postgresql - postgresql
{% if cookiecutter.use_celery == 'y' -%} {% if cookiecutter.use_celery == 'y' -%}