This commit is contained in:
Jacob Heider 2024-05-25 13:26:14 -04:00 committed by Jacob Heider
parent 157a11c2f8
commit 6ca4d0587d

View file

@ -0,0 +1,35 @@
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
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!"