Testing CircleCI with custom postgres env

This commit is contained in:
c0de 2018-03-08 20:09:20 -06:00
parent 8625898e86
commit a36299f0df
1 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,17 @@
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
services:
postgres:
image: circleci/postgres:9.4
environment:
POSTGRES_PASSWORD: totallyHacked1337
POSTGRES_USER: imagehost
POSTGRES_DB: imagehost_db
ports:
- '5432:5432'
jobs:
build:
docker:
@ -13,7 +24,7 @@ jobs:
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image: circleci/postgres:9.4
- image: postgres
working_directory: ~/repo