diff --git a/.drone.jsonnet b/.drone.jsonnet index ce43c3ac..2c1b415b 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -27,8 +27,9 @@ local phpunit(phpversion) = { image: "joomlaprojects/docker-images:php" + phpversion, [if phpversion == "8.2" then "failure"]: "ignore", commands: [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" - ] + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" + ], }; local pipeline(name, phpversion, params) = { diff --git a/.drone.yml b/.drone.yml index 17841313..16885628 100644 --- a/.drone.yml +++ b/.drone.yml @@ -108,7 +108,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php7.2", "name": "PHPUnit" @@ -144,7 +145,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php7.2", "name": "PHPUnit" @@ -180,7 +182,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php7.3", "name": "PHPUnit" @@ -216,7 +219,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php7.4", "name": "PHPUnit" @@ -252,7 +256,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php8.0", "name": "PHPUnit" @@ -288,7 +293,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "image": "joomlaprojects/docker-images:php8.1", "name": "PHPUnit" @@ -324,7 +330,8 @@ }, { "commands": [ - "php -S 127.0.0.1:8080 & vendor/bin/phpunit" + "php -S localhost:8080 -t Tests/stubs &", + "vendor/bin/phpunit" ], "failure": "ignore", "image": "joomlaprojects/docker-images:php8.2", @@ -342,6 +349,6 @@ } --- kind: signature -hmac: d57325fa6726c7f1b26d7c51a160c15d3008b83efaef294d5b0b02fa4d09aeb1 +hmac: b92b6c78b0d5519f12fe1a478291ebac147143d1d84bbc1f01730ee911c248bb ... diff --git a/phpunit.xml.dist b/phpunit.xml.dist index fbb70df0..b3efa6a6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,7 @@ - +