+github.com/bats-core/bats-core (#4943)

* new file:   projects/github.com/bats-core/bats-core/package.yml

* debug

* add `gnu.org/bc` dep

* oops, test dep

* Update package.yml

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2024-01-22 23:12:27 +02:00 committed by GitHub
parent 136f6d065d
commit 8af9366da6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,30 @@
distributable:
url: git+https://github.com/bats-core/bats-core.git
ref: ${{version.tag}}
versions:
github: bats-core/bats-core
warnings:
- vendored
dependencies:
gnu.org/coreutils: ^9.4
build: ./install.sh {{prefix}}
provides:
- bin/bats
test:
dependencies:
gnu.org/bc: ^1
fixture: |
@test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
}
script:
- cp $FIXTURE test.sh
- bats test.sh | grep 'addition'
- bats --version | grep {{version}}