Skip to content

Commit

Permalink
update travis .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
domtunstill committed Nov 27, 2019
1 parent 5413fec commit 80868aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export FLASK_ENV=development
export FLASK_ENV_TEST=test
export DATABASE_URL="postgres://localhost/sportsmatch_api_db"
export JWT_SECRET_KEY=fredperry
export TEST_DATABASE_URL="postgres://localhost/sportsmatch_api_test_db"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.env
# .env
.vscode/*
.coverage
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ script:

# after_success:
# - coveralls
env:
- TEST_DATABASE_URL="postgres://travis@localhost:3306/sportsmatch_api_test_db"
# env:
# - TEST_DATABASE_URL="postgres://travis@localhost:3306/sportsmatch_api_test_db"
# addons:
# - postgresql: "9.3"
4 changes: 4 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import os

from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())

class Test(object):
"""
Test environment configuration
Expand Down

0 comments on commit 80868aa

Please sign in to comment.