-
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.
Merge pull request #35 from kronostechnologies/psalm
Psalm
- Loading branch information
Showing
34 changed files
with
2,794 additions
and
1,083 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
version: 2.1 | ||
|
||
variables: | ||
composer_cache_version: &composer_cache_version v2 | ||
|
||
orbs: | ||
eq: equisoft/[email protected].4 | ||
eq: equisoft/[email protected].15 | ||
|
||
workflows: | ||
version: 2 | ||
build_and_deploy: | ||
jobs: | ||
- eq/phpunit: | ||
cache-version: *composer_cache_version | ||
checkout: true | ||
- eq/psalm : | ||
extra-build-args : --no-diff | ||
composer-cache-version: *composer_cache_version | ||
checkout : true |
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,26 @@ | ||
BASE_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
OS_TYPE := $(shell uname -s) | ||
USER_ID := $(shell id -u) | ||
GROUP_ID := $(shell id -g) | ||
MKDIR_P = mkdir -p | ||
DOCKER_PHP = docker run -it --rm \ | ||
-v $(BASE_DIR):/home/circleci/project \ | ||
-v ~/.cache:/home/circleci/.cache --user "${USER_ID}:${GROUP_ID}" \ | ||
--workdir /home/circleci/project \ | ||
-e HOME=/home/circleci \ | ||
ghcr.io/kronostechnologies/php:7.2-node | ||
|
||
.PHONY: all setup check psalm test | ||
|
||
all: setup check test | ||
|
||
setup: | ||
@composer install | ||
|
||
check: psalm | ||
|
||
psalm: | ||
@${DOCKER_PHP} ./vendor/bin/psalm $(PSALM_ARGS) | ||
|
||
test: | ||
@./vendor/bin/phpunit |
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
Oops, something went wrong.