这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ matrix:
- php: 7.1
env: EXECUTE_DEPLOYMENT=true
- php: 7.2
- php: 7.3
env: deps=low
fast_finish: true
before_install:
- phpenv config-rm xdebug.ini
- phpenv config-rm xdebug.ini || echo "XDebug is not enabled"
install:
- if [[ $deps = low ]]; then make update-min; else make install; fi
script:
Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
default: build

PHP_VERSION:=$(shell php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')

build: install test
.PHONY: build

Expand Down Expand Up @@ -31,16 +33,16 @@ test-integration: package
export COMPOSER_HOME=$(shell pwd)/build/tools/.composer && \
chmod +x build/toolbox.phar && \
mkdir -p ./build/tools && \
build/toolbox.phar install --target-dir ./build/tools && \
build/toolbox.phar test --target-dir ./build/tools
build/toolbox.phar install --target-dir ./build/tools --exclude-tag exclude-php:$(PHP_VERSION) && \
build/toolbox.phar test --target-dir ./build/tools --exclude-tag exclude-php:$(PHP_VERSION)
.PHONY: test-integration

cs: tools/php-cs-fixer
tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
.PHONY: cs

cs-fix: tools/php-cs-fixer
tools/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
.PHONY: cs-fix

deptrac: tools/deptrac
Expand Down
9 changes: 6 additions & 3 deletions resources/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
"target-dir": "%target-dir%/EasyCodingStandard"
}
},
"test": "ecs -h"
"test": "ecs -h",
"tags": ["exclude-php:7.3"]
},
{
"name": "infection",
Expand Down Expand Up @@ -172,7 +173,8 @@
"namespace": "php-coupling-detector"
}
},
"test": "php-coupling-detector list"
"test": "php-coupling-detector list",
"tags": ["exclude-php:7.3"]
},
{
"name": "php-cs-fixer",
Expand All @@ -199,7 +201,8 @@
"version": "1fa3d9a3e1c67654f3fe2511bd28fa7c33b59d7e"
}
},
"test": "php-formatter list"
"test": "php-formatter list",
"tags": ["exclude-php:7.3"]
},
{
"name": "php-semver-checker",
Expand Down