From 8af9366da6561ae2aeb29ec6ae8069855c6f4f4a Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:12:27 +0200 Subject: [PATCH] +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 --- .../bats-core/bats-core/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/bats-core/bats-core/package.yml diff --git a/projects/github.com/bats-core/bats-core/package.yml b/projects/github.com/bats-core/bats-core/package.yml new file mode 100644 index 00000000..e38cc55e --- /dev/null +++ b/projects/github.com/bats-core/bats-core/package.yml @@ -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}}