-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass exact PHP version to Psalm (#61)
* fix: pass exact PHP version to Psalm * file prefix macro * block start / end macros * Monorepo support
- Loading branch information
Showing
5 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ifndef MONOREPO_ROOT | ||
$(error MONOREPO_ROOT must be defined before loading Monorepo/common.mk) | ||
endif | ||
|
||
ifndef MONOREPO_DIRS | ||
$(error MONOREPO_DIRS must be defined before loading Monorepo/common.mk) | ||
endif | ||
|
||
all/%: % | ||
$(foreach DIR,${MONOREPO_DIRS},MONOREPO_ROOT=${CURDIR} $(MAKE) -C ${CURDIR}/${DIR} -f ${CURDIR}/Makefile $<;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ifndef SIGWIN_INFRA_ROOT | ||
SIGWIN_INFRA_ROOT := $(dir $(abspath $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))) | ||
endif | ||
include ${SIGWIN_INFRA_ROOT}/PHP/common.mk | ||
include ${SIGWIN_INFRA_ROOT}/Monorepo/common.mk | ||
|
||
dist: cs all/composer/normalize all/analyze/phpstan all/analyze/psalm test ## Prepare the codebase for commit | ||
analyze: analyze/cs all/analyze/composer all/analyze/phpstan all/analyze/psalm ## Analyze the codebase | ||
test: all/test/infection ## Test the codebase |