2023-12-27 22:35:52 +03:00
|
|
|
distributable:
|
2023-12-30 01:53:36 +03:00
|
|
|
url: https://github.com/emilpriver/geni/archive/refs/tags/v{{version}}.tar.gz
|
2023-12-27 22:35:52 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/geni
|
|
|
|
|
|
|
|
versions:
|
2023-12-30 01:53:36 +03:00
|
|
|
github: emilpriver/geni
|
|
|
|
strip: /^v/
|
2023-12-27 22:35:52 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
2023-12-30 08:13:48 +03:00
|
|
|
rust-lang.org: '>=1.65'
|
|
|
|
rust-lang.org/cargo: '*'
|
|
|
|
script:
|
2024-04-08 17:28:41 +03:00
|
|
|
# 0.0.4, 1.0.2 got released without a version bump
|
|
|
|
- run: sed -i -e 's/^version = ".*"/version = "{{version}}"/' Cargo.toml
|
|
|
|
- run: sed -i -e 's/"0\.0\.3"/"{{version}}"/' main.rs
|
|
|
|
working-directory: src
|
|
|
|
if: =0.0.4
|
2024-06-13 18:58:46 +03:00
|
|
|
- cargo install --path . --root {{prefix}}
|
2023-12-27 22:35:52 +03:00
|
|
|
|
|
|
|
test:
|
2024-02-21 21:38:48 +03:00
|
|
|
env:
|
|
|
|
DATABASE_URL: 'sqlite://./database.sqlite'
|
|
|
|
dependencies:
|
|
|
|
sqlite.org: '*'
|
2023-12-27 22:35:52 +03:00
|
|
|
script:
|
2024-01-02 00:14:34 +03:00
|
|
|
- test "$(geni --version)" = "geni v{{version}}"
|
2024-02-21 21:38:48 +03:00
|
|
|
- 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
|