PAN-6 Added the loadDb task to the build pipeline for Travis
This commit is contained in:
@@ -18,15 +18,18 @@ before_script:
|
||||
- mysql -u root pandamonium < pandamonium-theorem-prover/persistence/sql/local_development.sql
|
||||
|
||||
stages:
|
||||
- name: load database
|
||||
- name: build
|
||||
- name: unitTest
|
||||
- name: integrationTest
|
||||
- name: unit Test
|
||||
- name: integration Test
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: load database
|
||||
script: ./pandamonium-theorem-prover/gradlew loaddb
|
||||
- stage: build
|
||||
script: ./pandamonium-theorem-prover/gradlew build
|
||||
- stage: unitTest
|
||||
- stage: unit Test
|
||||
script: ./pandamonium-theorem-prover/gradlew test
|
||||
- stage: integrationTest
|
||||
- stage: integration Test
|
||||
script: ./pandamonium-theorem-prover/gradlew integrationTest
|
||||
|
||||
@@ -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