-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tr: configuration file love (yaml support)
Modify the way TR handles configuration files: - Add support for yaml files - When none explicit files are used the following order of files are searched: ".tasks.yaml", "tasks.yaml", ".tasks.json", "tasks.json". Also replaces all the internal [.]tasks.json files with their yaml counterparts. Signed-off-by: Omer Caspi <omer.caspi@gmail.com>
- Loading branch information
Showing
8 changed files
with
482 additions
and
595 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
$schema: /home/omer/devel/taskrunner/schemas/taskrunner_v0.11.json | ||
tasks: | ||
test: | ||
short_desc: Run test | ||
commands: | ||
- tests/runtests {{cliArgs}} | ||
cwd: '{{taskRoot}}' | ||
build: | ||
short_desc: Build package | ||
commands: | ||
- rm -rf dist | ||
- python3 -m build | ||
cwd: '{{taskRoot}}' | ||
upload-testpypi: | ||
short_desc: Build package to testpypi | ||
commands: | ||
- python3 -m twine upload --repository testpypi dist/* | ||
cwd: '{{taskRoot}}' | ||
upload-pypi: | ||
short_desc: Build package to pypi | ||
commands: | ||
- python3 -m twine upload dist/* | ||
cwd: '{{taskRoot}}' | ||
test_pkg_base: | ||
short_desc: Basic package test | ||
commands: | ||
- '{{taskRoot}}/tests/run_pkg_tests' | ||
abstract: true | ||
test_pkg_testpypi: | ||
short_desc: Basic package test from testpypi | ||
base: test_pkg_base | ||
env: | ||
TEST_PYPI: "1" | ||
test_pkg_pypi: | ||
short_desc: Basic package test from pypi | ||
base: test_pkg_base | ||
env: | ||
TEST_PYPI: "0" | ||
default_task: test | ||
default_container_tool: /usr/bin/podman | ||
use_default_include: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
setuptools>=72 | ||
argcomplete>=2.0.0 | ||
pydantic>=2.8 | ||
PyYAML>=6.0.2<7.0 |
Oops, something went wrong.