File tree Expand file tree Collapse file tree 9 files changed +67
-0
lines changed
Expand file tree Collapse file tree 9 files changed +67
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,10 @@ RUN set -x \
207207 && curl -qL https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.9.0/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
208208&& chmod +x /usr/local/bin/phpcbf \
209209 \
210+ # phpunit
211+ && curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
212+ && chmod +x /usr/local/bin/phpunit \
213+ \
210214# sass
211215 && gem install sass \
212216# webpack
@@ -290,6 +294,7 @@ RUN set -x \
290294 && phalcon commands | grep -E '[.0-9]+' \
291295 && phpcs --version | grep -E 'version [.0-9]+' \
292296 && phpcbf --version | grep -E 'version [.0-9]+' \
297+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
293298 && sass --version | grep -E '[.0-9]+' \
294299 && webpack --version | grep -E '[.0-9]+' \
295300 && wp --allow-root --version | grep -E '[.0-9]+' \
Original file line number Diff line number Diff line change @@ -217,6 +217,10 @@ RUN set -x \
217217 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
218218&& chmod +x /usr/local/bin/phpcbf \
219219 \
220+ # phpunit
221+ && curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
222+ && chmod +x /usr/local/bin/phpunit \
223+ \
220224# sass
221225 && gem install sass \
222226# symfony
@@ -304,6 +308,7 @@ RUN set -x \
304308 && phalcon commands | grep -E '[.0-9]+' \
305309 && phpcs --version | grep -E 'version [.0-9]+' \
306310 && phpcbf --version | grep -E 'version [.0-9]+' \
311+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
307312 && sass --version | grep -E '[.0-9]+' \
308313 && symfony --version | grep -E 'version\s * [.0-9]+' \
309314 && webpack --version | grep -E '[.0-9]+' \
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ RUN set -x \
220220 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
221221&& chmod +x /usr/local/bin/phpcbf \
222222 \
223+ # phpunit
224+ && curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
225+ && chmod +x /usr/local/bin/phpunit \
226+ \
223227# photon
224228 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
225229&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -312,6 +316,7 @@ RUN set -x \
312316 && phalcon commands | grep -E '[.0-9]+' \
313317 && phpcs --version | grep -E 'version [.0-9]+' \
314318 && phpcbf --version | grep -E 'version [.0-9]+' \
319+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
315320 && photon --version | grep -E 'Installer [.0-9]+' \
316321 && sass --version | grep -E '[.0-9]+' \
317322 && symfony --version | grep -E 'version\s * [.0-9]+' \
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ RUN set -x \
220220 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
221221&& chmod +x /usr/local/bin/phpcbf \
222222 \
223+ # phpunit
224+ && curl -qL https://phar.phpunit.de/phpunit-5.phar > /usr/local/bin/phpunit 2>/dev/null \
225+ && chmod +x /usr/local/bin/phpunit \
226+ \
223227# photon
224228 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
225229&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -312,6 +316,7 @@ RUN set -x \
312316 && phalcon commands | grep -E '[.0-9]+' \
313317 && phpcs --version | grep -E 'version [.0-9]+' \
314318 && phpcbf --version | grep -E 'version [.0-9]+' \
319+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
315320 && photon --version | grep -E 'Installer [.0-9]+' \
316321 && sass --version | grep -E '[.0-9]+' \
317322 && symfony --version | grep -E 'version\s * [.0-9]+' \
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ RUN set -x \
220220 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
221221&& chmod +x /usr/local/bin/phpcbf \
222222 \
223+ # phpunit
224+ && curl -qL https://phar.phpunit.de/phpunit-6.phar > /usr/local/bin/phpunit 2>/dev/null \
225+ && chmod +x /usr/local/bin/phpunit \
226+ \
223227# photon
224228 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
225229&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -312,6 +316,7 @@ RUN set -x \
312316 && phalcon commands | grep -E '[.0-9]+' \
313317 && phpcs --version | grep -E 'version [.0-9]+' \
314318 && phpcbf --version | grep -E 'version [.0-9]+' \
319+ && phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
315320 && photon --version | grep -E 'Installer [.0-9]+' \
316321 && sass --version | grep -E '[.0-9]+' \
317322 && symfony --version | grep -E 'version\s*[.0-9]+' \
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ RUN set -x \
220220 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
221221&& chmod +x /usr/local/bin/phpcbf \
222222 \
223+ # phpunit
224+ && curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
225+ && chmod +x /usr/local/bin/phpunit \
226+ \
223227# photon
224228 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
225229&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -312,6 +316,7 @@ RUN set -x \
312316 && phalcon commands | grep -E '[.0-9]+' \
313317 && phpcs --version | grep -E 'version [.0-9]+' \
314318 && phpcbf --version | grep -E 'version [.0-9]+' \
319+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
315320 && photon --version | grep -E 'Installer [.0-9]+' \
316321 && sass --version | grep -E '[.0-9]+' \
317322 && symfony --version | grep -E 'version\s * [.0-9]+' \
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ RUN set -x \
220220 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
221221&& chmod +x /usr/local/bin/phpcbf \
222222 \
223+ # phpunit
224+ && curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
225+ && chmod +x /usr/local/bin/phpunit \
226+ \
223227# photon
224228 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
225229&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -312,6 +316,7 @@ RUN set -x \
312316 && phalcon commands | grep -E '[.0-9]+' \
313317 && phpcs --version | grep -E 'version [.0-9]+' \
314318 && phpcbf --version | grep -E 'version [.0-9]+' \
319+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
315320 && photon --version | grep -E 'Installer [.0-9]+' \
316321 && sass --version | grep -E '[.0-9]+' \
317322 && symfony --version | grep -E 'version\s * [.0-9]+' \
Original file line number Diff line number Diff line change @@ -209,6 +209,10 @@ RUN set -x \
209209 && curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
210210&& chmod +x /usr/local/bin/phpcbf \
211211 \
212+ # phpunit
213+ && curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
214+ && chmod +x /usr/local/bin/phpunit \
215+ \
212216# photon
213217 && COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
214218&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
@@ -300,6 +304,7 @@ RUN set -x \
300304 && mysqldump-secure --version | grep -E 'Version:\s * [.0-9]+' \
301305 && phpcs --version | grep -E 'version [.0-9]+' \
302306 && phpcbf --version | grep -E 'version [.0-9]+' \
307+ && phpunit --version | grep -iE '^PHPUnit\s[ .0 - 9 ] +' \
303308 && photon --version | grep -E 'Installer [.0-9]+' \
304309 && sass --version | grep -E '[.0-9]+' \
305310 && symfony --version | grep -E 'version\s * [.0-9]+' \
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ software_enabled:
7171 - phalcon
7272 - phpcs
7373 - phpcbf
74+ - phpunit
7475 - photon
7576 - sass
7677 - symfony
@@ -358,6 +359,32 @@ software_available:
358359 command : |
359360 curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
360361 && chmod +x /usr/local/bin/phpcbf \
362+ phpunit :
363+ check : phpunit --version | grep -iE '^PHPUnit\s[.0-9]+'
364+ 5.3 :
365+ command : |
366+ curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
367+ && chmod +x /usr/local/bin/phpunit \
368+ 5.4 :
369+ command : |
370+ curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
371+ && chmod +x /usr/local/bin/phpunit \
372+ 5.5 :
373+ command : |
374+ curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
375+ && chmod +x /usr/local/bin/phpunit \
376+ 5.6 :
377+ command : |
378+ curl -qL https://phar.phpunit.de/phpunit-5.phar > /usr/local/bin/phpunit 2>/dev/null \
379+ && chmod +x /usr/local/bin/phpunit \
380+ 7.0 :
381+ command : |
382+ curl -qL https://phar.phpunit.de/phpunit-6.phar > /usr/local/bin/phpunit 2>/dev/null \
383+ && chmod +x /usr/local/bin/phpunit \
384+ all :
385+ command : |
386+ curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
387+ && chmod +x /usr/local/bin/phpunit \
361388 photon :
362389 check : photon --version | grep -E 'Installer [.0-9]+'
363390 disabled : [5.3, 5.4]
You can’t perform that action at this time.
0 commit comments