mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
20841c0358
commit
f63bb9e5e0
1 changed files with 17 additions and 0 deletions
|
@ -20,5 +20,22 @@ build:
|
|||
- cargo install --locked --path . --root {{prefix}}
|
||||
|
||||
test:
|
||||
env:
|
||||
DATABASE_URL: 'sqlite://./database.sqlite'
|
||||
dependencies:
|
||||
sqlite.org: '*'
|
||||
script:
|
||||
- test "$(geni --version)" = "geni v{{version}}"
|
||||
- geni new test
|
||||
- run: cat $FIXTURE >> migrations/*_test.up.sql
|
||||
fixture: |
|
||||
|
||||
CREATE TABLE Persons (
|
||||
PersonID int
|
||||
)
|
||||
- run: cat $FIXTURE >> migrations/*_test.down.sql
|
||||
fixture: |
|
||||
|
||||
DROP TABLE Persons;
|
||||
- geni up
|
||||
- geni down
|
||||
|
|
Loading…
Reference in a new issue