From a36299f0dffa275911bc65edcaf44f7822c898bc Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 8 Mar 2018 20:09:20 -0600 Subject: [PATCH] Testing CircleCI with custom postgres env --- .circleci/config.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a724e2b..6982462 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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