mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+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:
parent
136f6d065d
commit
8af9366da6
1 changed files with 30 additions and 0 deletions
30
projects/github.com/bats-core/bats-core/package.yml
Normal file
30
projects/github.com/bats-core/bats-core/package.yml
Normal 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}}
|
Loading…
Reference in a new issue