This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git
commit 622c017d8f5a65d55c4ffcacc7b333118c67dd0e Author: Michele Sciabarra <[email protected]> AuthorDate: Sat Jul 27 17:45:35 2024 +0200 taskfile for tasktests --- tasktests/Taskfile.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/tasktests/Taskfile.yml b/tasktests/Taskfile.yml new file mode 100644 index 0000000..f395392 --- /dev/null +++ b/tasktests/Taskfile.yml @@ -0,0 +1,51 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +version: "3" + +vars: + BRANCH: "0.1.0-testing" + BASEVER: "0.1.0-testing" + VERSION: + sh: git describe --tags --abbrev=0 2>/dev/null || git rev-parse --short HEAD + DEBUG: "" + +tasks: + + default: task -l + setup: { silent:true } + + bats: + dir: tests + cmds: + - git clone https://github.com/bats-core/bats-core bats + - git clone https://github.com/bats-core/bats-support test_helper/bats-support + - git clone https://github.com/bats-core/bats-assert test_helper/bats-assert + status: + - test -d bats + + test: + desc: integration tests for nuv (T=<test-name> without .bats, empty all) + dir: tests + cmds: + - task: bats + - | + if test -z "{{.T}}" + then bats/bin/bats . + else bats/bin/bats {{.T}}.bats + fi +
