diff --git a/.travis.yml b/.travis.yml index 427b4b326..25604dbb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,5 @@ before_script: script: - bash scripts/test-sqlite3-migrations.sh +- bash scripts/test-mysql-migrations.sh - go test -v ./pkg/... diff --git a/scripts/test-mysql-migrations.sh b/scripts/test-mysql-migrations.sh new file mode 100644 index 000000000..9f543bf68 --- /dev/null +++ b/scripts/test-mysql-migrations.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +rockhopper --config rockhopper_mysql.yaml up +rockhopper --config rockhopper_mysql.yaml down --to 1 diff --git a/scripts/test-sqlite3-migrations.sh b/scripts/test-sqlite3-migrations.sh index c552aed86..b101d0f69 100755 --- a/scripts/test-sqlite3-migrations.sh +++ b/scripts/test-sqlite3-migrations.sh @@ -1,2 +1,5 @@ #!/bin/bash -rm -fv bbgo.sqlite3 && rockhopper --config rockhopper_sqlite.yaml up && rockhopper --config rockhopper_sqlite.yaml down --to 1 +set -e +rm -fv bbgo.sqlite3 +rockhopper --config rockhopper_sqlite.yaml up +rockhopper --config rockhopper_sqlite.yaml down --to 1