Skip to content

Commit

Permalink
ci: workaround make clean in windows with || true
Browse files Browse the repository at this point in the history
  • Loading branch information
oedokumaci committed May 2, 2023
1 parent ec659d5 commit d5a8c00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: help vscode-settings setup run project-help test pre-commit clean

help: ## Show this help message for each Makefile recipe.
help: ## Show this help message for each Makefile recipe
ifeq ($(OS),Windows_NT)
@findstr /R /C:"^[a-zA-Z0-9 -]\+:.*##" $(MAKEFILE_LIST) | awk -F ':.*##' '{printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' | sort
else
Expand Down Expand Up @@ -49,10 +49,10 @@ pre-commit: ## Run pre-commit

clean: ## Clean cached files
ifeq ($(OS),Windows_NT)
if exist .mypy_cache rmdir /s /q .mypy_cache
if exist .pytest_cache rmdir /s /q .pytest_cache
if exist src\gale_shapley\__pycache__ rmdir /s /q src\gale_shapley\__pycache__
if exist tests\__pycache__ rmdir /s /q tests\__pycache__
rmdir /s /q .mypy_cache || true
rmdir /s /q .pytest_cache || true
rmdir /s /q src\gale_shapley\__pycache__ || true
rmdir /s /q tests\__pycache__ || true
else
rm -rf .mypy_cache
rm -rf .pytest_cache
Expand Down

0 comments on commit d5a8c00

Please sign in to comment.