PAN-6 Added the loadDb task to the build pipeline for Travis

This commit is contained in:
2019-02-10 12:16:58 -07:00
parent e28bf8cda4
commit 1e77a38483
4 changed files with 9 additions and 6 deletions
@@ -28,6 +28,6 @@ dependencies {
}
task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local database.') {
workingDir "$rootDir/scripts/mysql"
workingDir "./scripts/mysql"
commandLine './loaddb.sh'
}
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
export MYSQL_PWD=secret
for sqlScript in $( find ../../ -name "*.sql" -print | sort);
for sqlScript in $( find . -name "*.sql" -print | sort);
do
echo "**** $sqlScript ****"
mysql --batch --quick --raw --line-numbers --force --user=panda < $sqlScript