Skip to content

Commit

Permalink
chore(requirement-checker): Move PHPUnit cache to a dist directory (#749
Browse files Browse the repository at this point in the history
)
  • Loading branch information
theofidry authored Jan 7, 2023
1 parent ddc3e07 commit 9441c08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions requirement-checker/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
!/dist/.gitkeep
/.box/
/.box_dump/
/.phpunit*
/.phpunit.result.cache
/actual_terminal_diff
/bin/*
/dist/
/tests/TerminalCompatibility/actual_diff
/vendor/
7 changes: 7 additions & 0 deletions requirement-checker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ check: cs cs_lint test
clean: ## Cleans all created artifacts
clean:
rm -rf \
dist \
$(ACTUAL_TERMINAL_DIFF) \
.phpunit.result.cache \
|| true
$(MAKE) dist

.PHONY: cs
cs: ## Fixes CS
Expand Down Expand Up @@ -103,3 +105,8 @@ $(ACTUAL_TERMINAL_DIFF): src/Terminal.php vendor $(ORIGINAL_TERMINAL)
$(ORIGINAL_TERMINAL):
cd ..; $(MAKE) vendor-bin/requirement-checker/vendor
touch -c $@

dist:
mkdir -p dist
touch dist/.gitkeep
touch -c $@
3 changes: 2 additions & 1 deletion requirement-checker/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
colors="true"
cacheResultFile="dist/.phpunit.result.cache">

<php>
<!-- The width is matching the Travis one to avoid any issues with the CI -->
Expand Down

0 comments on commit 9441c08

Please sign in to comment.