PAN-6 Added the loadDb task to the build pipeline for Travis
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user