Skip to content

Commit

Permalink
Avoid connecting to postgres on each run
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Nov 12, 2018
1 parent e716db7 commit 3077eec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
20 changes: 11 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
jobs:
unit:
docker: &py36
docker: &py36_postgres
- image: python:3.6
- image: postgres
environment: &pgenv
Expand All @@ -23,7 +23,7 @@ jobs:
PGDATABASE: postgres
- run: tox -e pep8,unit-py27,unit-py36
integration-postgres-py36:
docker: *py36
docker: *py36_postgres
steps:
- checkout
- run: apt-get update && apt-get install -y python3-dev postgresql
Expand All @@ -34,10 +34,11 @@ jobs:
name: Run tests
command: tox -e integration-postgres-py36
integration-snowflake-py36:
docker: *py36
docker: &py36
- image: python:3.6
steps:
- checkout
- run: apt-get update && apt-get install -y python3-dev postgresql
- run: apt-get update && apt-get install -y python3-dev
- run: echo 127.0.0.1 database | tee -a /etc/hosts
- run: pip install virtualenvwrapper tox
- run:
Expand All @@ -58,14 +59,14 @@ jobs:
docker: *py36
steps:
- checkout
- run: apt-get update && apt-get install -y python3-dev postgresql
- run: apt-get update && apt-get install -y python3-dev
- run: echo 127.0.0.1 database | tee -a /etc/hosts
- run: pip install virtualenvwrapper tox
- run:
name: Run tests
command: tox -e integration-bigquery-py36
integration-postgres-py27:
docker: &py27
docker: &py27_postgres
- image: python:2.7
- image: postgres
environment: *pgenv
Expand All @@ -79,10 +80,11 @@ jobs:
name: Run tests
command: tox -e integration-postgres-py27
integration-snowflake-py27:
docker: *py27
docker: &py27
- image: python:2.7
steps:
- checkout
- run: apt-get update && apt-get install -y python-dev postgresql
- run: apt-get update && apt-get install -y python-dev
- run: echo 127.0.0.1 database | tee -a /etc/hosts
- run: pip install virtualenvwrapper tox
- run:
Expand All @@ -103,7 +105,7 @@ jobs:
docker: *py27
steps:
- checkout
- run: apt-get update && apt-get install -y python-dev postgresql
- run: apt-get update && apt-get install -y python-dev
- run: echo 127.0.0.1 database | tee -a /etc/hosts
- run: pip install virtualenvwrapper tox
- run:
Expand Down
5 changes: 0 additions & 5 deletions test/integration/connection.py

This file was deleted.

0 comments on commit 3077eec

Please sign in to comment.