mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 19:41:16 +00:00
Improve PHPUnit install
This commit is contained in:
@@ -149,10 +149,16 @@ tools_available:
|
||||
check: phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false)
|
||||
all:
|
||||
type: custom
|
||||
command: curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit
|
||||
command: |
|
||||
if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
pre: PHP_UNIT_VERSION="9"
|
||||
pre: PHP_UNIT_VERSION=""
|
||||
post: chmod +x /usr/local/bin/phpunit
|
||||
7.2:
|
||||
type: custom
|
||||
|
||||
@@ -288,7 +288,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="4" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -296,7 +296,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="4" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -312,7 +312,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="4" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -312,7 +312,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="5" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -312,7 +312,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="6" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -312,7 +312,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="7" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -312,7 +312,13 @@ RUN set -eux \
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="8" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -323,8 +323,14 @@ RUN set -eux \
|
||||
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="9" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& PHP_UNIT_VERSION="" \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -323,8 +323,14 @@ RUN set -eux \
|
||||
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="9" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& PHP_UNIT_VERSION="" \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -323,8 +323,14 @@ RUN set -eux \
|
||||
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="9" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& PHP_UNIT_VERSION="" \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -323,8 +323,14 @@ RUN set -eux \
|
||||
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="9" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& PHP_UNIT_VERSION="" \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -323,8 +323,14 @@ RUN set -eux \
|
||||
|
||||
# -------------------- (custom) phpunit --------------------
|
||||
RUN set -eux \
|
||||
&& PHP_UNIT_VERSION="9" \
|
||||
&& curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit \
|
||||
&& PHP_UNIT_VERSION="" \
|
||||
&& if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
\
|
||||
&& chmod +x /usr/local/bin/phpunit \
|
||||
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) \
|
||||
&& true
|
||||
|
||||
@@ -4,10 +4,16 @@ check: phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --versi
|
||||
|
||||
all:
|
||||
type: custom
|
||||
command: curl -sS -L --fail "https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar" -L -o /usr/local/bin/phpunit
|
||||
command: |
|
||||
if [ -n "${PHP_UNIT_VERSION}" ]; then \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \
|
||||
else \
|
||||
PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \
|
||||
fi \
|
||||
&& curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \
|
||||
build_dep: []
|
||||
run_dep: []
|
||||
pre: PHP_UNIT_VERSION="9"
|
||||
pre: PHP_UNIT_VERSION=""
|
||||
post: chmod +x /usr/local/bin/phpunit
|
||||
|
||||
7.2:
|
||||
|
||||
Reference in New Issue
Block a user