forked from friendica/friendica-docker-ci
Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
heluecht | 5b9b6689ab | ||
Philipp Holzer | 5e6d56ea8d | ||
Philipp Holzer | 88a02fa2cf | ||
Hypolite Petovan | b018eaa33f | ||
Tobias Quathamer | aa8725eb58 | ||
Tobias Quathamer | 733743acca |
|
@ -1,4 +1,4 @@
|
|||
FROM php:7.4
|
||||
FROM php:8.0
|
||||
|
||||
RUN apt-get update -q && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#
|
||||
# Checks the PHP CS syntax
|
||||
#
|
||||
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then
|
||||
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then
|
||||
EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}");
|
||||
else
|
||||
EXTRA_ARGS='';
|
||||
fi
|
||||
|
||||
./bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --using-cache=no ${EXTRA_ARGS}
|
||||
./bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --diff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}
|
||||
|
|
Loading…
Reference in a new issue