Skip to content

Commit

Permalink
Add a clean environment to tox
Browse files Browse the repository at this point in the history
Fixes canonical/charmcraft#1389

Signed-off-by: Alex Lowe <[email protected]>
  • Loading branch information
lengau committed Dec 8, 2023
1 parent 7834e51 commit a6cb3c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit a6cb3c0

Please sign in to comment.