mirror of
https://github.com/ivabus/pantry
synced 2024-11-13 03:55:18 +03:00
39 lines
802 B
YAML
39 lines
802 B
YAML
distributable:
|
|
url: https://github.com/Ph0enixKM/Amber/archive/refs/tags/{{ version.tag }}.tar.gz
|
|
strip-components: 1
|
|
|
|
provides:
|
|
- bin/amber
|
|
|
|
interprets:
|
|
extensions: ab
|
|
args: amber
|
|
|
|
versions:
|
|
github: Ph0enixKM/Amber
|
|
strip: /-alpha/ # until there's a stable release
|
|
|
|
companions:
|
|
gnu.org/bc: 1
|
|
|
|
build:
|
|
dependencies:
|
|
rust-lang.org: '>=1.56'
|
|
rust-lang.org/cargo: '*'
|
|
script: cargo install --locked --path . --root {{prefix}}
|
|
|
|
test:
|
|
dependencies:
|
|
pkgx.sh: ^1
|
|
script:
|
|
- run: |
|
|
test "$(amber $FIXTURE)" = "Hello, world!"
|
|
test "$(pkgx $FIXTURE)" = "Hello, world!"
|
|
amber $FIXTURE hello.sh
|
|
fixture:
|
|
extname: ab
|
|
content: |
|
|
let hello = "Hello, world!"
|
|
echo hello
|
|
- test "$(./hello.sh)" = "Hello, world!"
|