Skip to content

Commit

Permalink
Drone (#51)
Browse files Browse the repository at this point in the history
* Proper setup of drone
  • Loading branch information
nibra authored Aug 21, 2022
1 parent dafbace commit 2ed84b7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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) = {
Expand Down
23 changes: 15 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand All @@ -342,6 +349,6 @@
}
---
kind: signature
hmac: d57325fa6726c7f1b26d7c51a160c15d3008b83efaef294d5b0b02fa4d09aeb1
hmac: b92b6c78b0d5519f12fe1a478291ebac147143d1d84bbc1f01730ee911c248bb

...
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" colors="false">
<php>
<const name="JTEST_HTTP_STUB" value="http://localhost/http/Tests/stubs/jhttp_stub.php" />
<const name="JTEST_HTTP_STUB" value="http://localhost:8080/jhttp_stub.php" />
</php>
<testsuites>
<testsuite name="Unit">
Expand Down

0 comments on commit 2ed84b7

Please sign in to comment.