Skip to content

Commit

Permalink
Move to CircleCI 2 for PR testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmac committed Nov 8, 2017
1 parent 658b77a commit 0eff0ef
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 39 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,21 @@
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Setup
command: |
echo "export DOCKER_IMAGE_TAG=mozmeao/nucleus:${CIRCLE_SHA1}" >> $BASH_ENV
- run:
name: Build Image
command: |
docker build -t "$DOCKER_IMAGE_TAG" --pull=true .
- run:
name: Run Tests
command: |
docker run --env-file docker/envfiles/test.env "$DOCKER_IMAGE_TAG" bin/run-tests.sh
2 changes: 1 addition & 1 deletion bin/run-tests.sh
@@ -1,5 +1,5 @@
#!/bin/bash -ex

urlwait
flake8 nucleus
bin/post-deploy.sh
python manage.py test
38 changes: 0 additions & 38 deletions circle.yml

This file was deleted.

0 comments on commit 0eff0ef

Please sign in to comment.