diff --git a/tox.ini b/tox.ini index 089a2d7c9..70d9b6906 100644 --- a/tox.ini +++ b/tox.ini @@ -42,6 +42,21 @@ commands_post = mv requirements.txt requirements-last-build.txt mv charm_version.backup charm_version +[testenv:clean] +pass_env = + CRAFT_SHARED_CACHE +allowlist_externals = + {[testenv]allowlist_externals} + charmcraft + mv + touch +commands_pre = + # Need a requirements.txt since we have strict dependencies + touch requirements.txt +commands = + charmcraft clean {posargs} + rm requirements.txt + [testenv:format] description = Apply coding style standards to code commands_pre =