mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
a6792a273f
`test` is a reserved word in v1. closes #5436
32 lines
733 B
YAML
32 lines
733 B
YAML
distributable:
|
|
url: https://github.com/gleam-lang/gleam/archive/refs/tags/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
provides:
|
|
- bin/gleam
|
|
|
|
versions:
|
|
github: gleam-lang/gleam
|
|
strip: /v/
|
|
|
|
build:
|
|
dependencies:
|
|
rust-lang.org: '>=1.60'
|
|
rust-lang.org/cargo: '*'
|
|
script: cargo install --path compiler-cli --force --locked --root {{prefix}}
|
|
|
|
test:
|
|
dependencies:
|
|
erlang.org: '*'
|
|
script:
|
|
- gleam --version
|
|
- gleam new pkgx_test_project
|
|
- run: cp $FIXTURE pkgx_test_project/src/pkgx_test_project.gleam
|
|
fixture: |
|
|
import gleam/io
|
|
|
|
pub fn main() {
|
|
io.print("Hello, world!")
|
|
}
|
|
- run: gleam run | grep "Hello, world!"
|
|
working-directory: pkgx_test_project
|