mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+amber
This commit is contained in:
parent
157a11c2f8
commit
6ca4d0587d
1 changed files with 35 additions and 0 deletions
35
projects/amber-lang.com/package.yml
Normal file
35
projects/amber-lang.com/package.yml
Normal 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!"
|
Loading…
Reference in a new issue