make sure generate-models.sh runs from correct dir
This commit is contained in:
parent
faae7c0324
commit
5666ee4a80
|
@ -1,11 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# ensure tools are installed
|
||||
go get github.com/volatiletech/sqlboiler/v4
|
||||
go get github.com/volatiletech/sqlboiler-sqlite3
|
||||
|
||||
# make sure we are in the correct directory
|
||||
cd "$(dirname $0)"
|
||||
|
||||
# run the migrations (creates testrun/TestSchema/roomdb)
|
||||
go test -run Schema
|
||||
|
||||
|
|
Loading…
Reference in New Issue