Skip to content

Commit

Permalink
Fix CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeaufort committed Feb 1, 2022
1 parent 4a80907 commit 542cd1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ jobs:
# A list of available CircleCI Docker convenience images are available here: https://circleci.com/developer/images/image/cimg/python
docker:
- image: cimg/python:3.7
environment:
DATABASE_URL: postgres://${FECFILE_DB_USERNAME}@${FECFILE_DB_PASSWORD}/${FECFILE_DB_NAME}

steps:
- checkout

- run:
name: Install python test requirements
command: pip install -r requirements-test.txt
working_directory: ~/project/django-backend/
working_directory: ~/project/

- run:
name: Run lint
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:

- python/install-packages:
pkg-manager: pip
app-dir: ~/project/django-backend/
app-dir: ~/project/
pip-dependency-file: requirements.txt

- run:
Expand Down
File renamed without changes.
6 changes: 1 addition & 5 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import sys
import cfenv

# from invoke import run
from invoke import task
# from slacker import Slacker

env = cfenv.AppEnv()

Expand Down Expand Up @@ -76,9 +74,7 @@ def deploy(ctx, space=None, branch=None, login=None):
if space is None:
return

# Build static assets
# These must be built prior to deploying due to the collectstatic
# functionality of the Python buildpack conflicting with our setup.
# Use production settings
ctx.run(
'cd django-backend && DJANGO_SETTINGS_MODULE=fecfiler.settings.production',
echo=True
Expand Down

0 comments on commit 542cd1a

Please sign in to comment.