Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ version: 2.1
jobs:
gatekeeper_test:
docker:
- image: circleci/python:3
- image: benmoose/gatekeeper-builder
steps:
- checkout
- setup_remote_docker
- run:
name: Build images
command: |
docker-compose build
# - setup_remote_docker
# - run:
# name: Build images
# command: |
# docker-compose build
- run:
name: Check code style
command: |
docker-compose -f docker-compose.yml \
run --rm --no-deps --entrypoint ./run-linter.sh server --check
./run-linter.sh --check
- run:
name: Run tests
command: |
docker-compose -f docker-compose.yml \
run --rm --entrypoint ./run-tests.sh server
./run-tests.sh -vv

workflows:
version: 2
Expand Down
4 changes: 2 additions & 2 deletions operations/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ENV PYTHONUNBUFFERED 1

WORKDIR /wheels

COPY requirements*.txt requirements/
RUN pip wheel -r ./requirements/requirements.test.txt
COPY requirements.txt requirements
RUN pip wheel -r ./requirements/requirements.txt

FROM python:3.7-slim
ENV PYTHONUNBUFFERED 1
Expand Down
9 changes: 9 additions & 0 deletions operations/django/builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:3.7 AS builder
ENV PYTHONUNBUFFERED 1

WORKDIR /usr/src/app

COPY requirements*.txt /requirements/
RUN pip install -r /requirements/requirements.test.txt

COPY . .
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

export ENVIRONMENT=test
export DJANGO_SETTINGS_MODULE=django_conf.settings

export TWILIO_ACCOUNT_SID=test-account-sid
export TWILIO_AUTH_TOKEN=test-auth-token
Expand Down