Skip to content

Commit b7eeba5

Browse files
committed
process_tracker_python-1 Add support for other relational databases
🐛 travis CI configuration Trying to debug the database build matrix for .travis.yml Working on #1
1 parent a4c7cfe commit b7eeba5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ after_success:
1313
- coveralls
1414
before_script:
1515
- mkdir $HOME/.process_tracker
16-
- mv configs/${database_type}_config.ini $HOME/.process_tracker/process_tracker_config.ini
17-
- sh -c "if [ '$DB' == 'postgresq' ]; then psql -f dbscripts/postgresql_account_create.sql -U postgres; fi"
18-
- sh -c "if [ '$DB' == 'postgresq' ]; then psql -f dbscripts/postgresql_process_tracker.sql process_tracking -U postgres; fi"
19-
- sh -c "if [ '$DB' == 'postgresq' ]; then psql -f dbscripts/postgresqlpostgresql_process_tracker_defaults.sql_process_tracker_defaults.sql process_tracking -U postgres; fi"
16+
- mv configs/${DB}_config.ini $HOME/.process_tracker/process_tracker_config.ini
17+
- sh -c "if [ '$DB' == 'postgres' ]; then psql -f dbscripts/postgresql_account_create.sql -U postgres; fi"
18+
- sh -c "if [ '$DB' == 'postgres' ]; then psql -f dbscripts/postgresql_process_tracker.sql process_tracking -U postgres; fi"
19+
- sh -c "if [ '$DB' == 'postgres' ]; then psql -f dbscripts/postgresqlpostgresql_process_tracker_defaults.sql_process_tracker_defaults.sql process_tracking -U postgres; fi"
2020
- sh -c "if [ '$DB' == 'mysql' ]; then mysql -u root < dbscripts/mysql_account_create.sql; fi"
2121
- sh -c "if [ '$DB' == 'mysql' ]; then mysql -u root < dbscripts/mysql_process_tracker.sql; fi"
2222
- sh -c "if [ '$DB' == 'mysql' ]; then mysql -u root < dbscripts/mysql_process_tracker_defaults.sql; fi"
2323
env:
24-
- DB=postgres database_type=postgresql
25-
- DB=mysql database_type=mysql
24+
- DB=postgres
25+
- DB=mysql
2626
deploy:
2727
- provider: releases
2828
api_key:

dbscripts/mysql_account_create.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
drop database if exists process_tracker;
22
create database process_tracker;
3-
create user pt_admin identified by 'Testing1!';
3+
create user pt_admin@'%' identified by 'Testing1!';
44
grant all privileges on process_tracker.* to pt_admin;

0 commit comments

Comments
 (0)