Skip to content

Commit 0359f91

Browse files
committed
Configuration File Initialization
✨ Configuration now handled thru config file - not environment variables Tweaking travis configuration to handle new configuration files. Added sample log for postgresql. Will add others as testing on other databses commences.
1 parent 0feeb7e commit 0359f91

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ script:
1111
after_success:
1212
- coveralls
1313
before_script:
14+
- mv configs/${database_type}_config.ini $HOME/.process_tracker/process_tracker_config.ini
1415
- psql -f dbscripts/postgresql_account_create.sql -U postgres
1516
- psql -f dbscripts/postgresql_process_tracker.sql process_tracking -U postgres
1617
- psql -f dbscripts/postgresql_process_tracker_defaults.sql process_tracking -U postgres
1718
env:
18-
- process_tracking_data_store_host=localhost process_tracking_data_store_port=5432
19-
process_tracking_data_store_name=process_tracking process_tracking_data_store_type=postgresql
20-
process_tracking_data_store_password=Testing1! process_tracking_data_store_username=pt_admin log_level=ERROR
19+
- database_type=postgresql
2120
deploy:
2221
- provider: releases
2322
api_key:

configs/postgresql_config.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[DEFAULT]
2+
log_level = ERROR
3+
data_store_type = postgresql
4+
data_store_username = pt_admin
5+
data_store_password = Testing1!
6+
data_store_host = localhost
7+
data_store_port = 5432
8+
data_store_name = process_tracking

0 commit comments

Comments
 (0)