test_linux_containers/Taskfile.yml

31 lines
762 B
YAML

---
version: '3'
tasks:
init-project:
cmds: [pipenv install, pipenv install --dev]
pipenv-shell:
cmds: [pipenv shell]
format-yml:
cmds: [yamlfix .]
lint-yml:
deps: [format-yml]
cmds: [yamllint .]
lint-ansible:
deps: [lint-yml]
cmds: [LC_ALL=C.UTF-8 ansible-lint .]
init-tests:
cmds:
- LC_ALL=C.UTF-8 ansible-galaxy install -r requirements-test.yml --force
test-all:
deps: [init-tests]
dir: extensions
cmds:
- |
LC_ALL=C.UTF-8 \
LTE_CONTAINER_NAME={{ .LTE_CONTAINER_NAME }} \
LTE_CONTAINER_ROOT_PWD={{ .LTE_CONTAINER_ROOT_PWD }} \
molecule test --all
vars:
LTE_CONTAINER_NAME:
sh: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1