mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 15:55:14 +00:00
add script for testing mysql migrations
This commit is contained in:
parent
7d243e6026
commit
777d673b14
|
@ -20,4 +20,5 @@ before_script:
|
|||
|
||||
script:
|
||||
- bash scripts/test-sqlite3-migrations.sh
|
||||
- bash scripts/test-mysql-migrations.sh
|
||||
- go test -v ./pkg/...
|
||||
|
|
4
scripts/test-mysql-migrations.sh
Normal file
4
scripts/test-mysql-migrations.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
rockhopper --config rockhopper_mysql.yaml up
|
||||
rockhopper --config rockhopper_mysql.yaml down --to 1
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user