Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264990
Change subject: Have php-composer-test job pass even if no composer.json exists
......................................................................
Have php-composer-test job pass even if no composer.json exists
This will allow us to add the job to all extension pipelines, so people
who want to add composer tests don't need to wait for someone from CI to
add the jobs for them.
Also it will keep old extension branches from breaking the moment new
tests are added.
This logically follows up c1788b24187e.
Change-Id: Ia69e1a28ac222987b667ef4a9098ed2fa3183506
---
M jjb/macro.yaml
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/integration/config
refs/changes/90/264990/1
diff --git a/jjb/macro.yaml b/jjb/macro.yaml
index 00a60c2..6eff6aa 100644
--- a/jjb/macro.yaml
+++ b/jjb/macro.yaml
@@ -586,6 +586,7 @@
- shell: |
set -u
cd "{dir}"
+ [[ -f "composer.json" ]] || exit 0
composer update --ansi --no-progress --prefer-dist --profile -v
- builder:
@@ -607,4 +608,5 @@
name: composer-test
builders:
- shell: |
+ [[ -f "composer.json" ]] || exit 0
COMPOSER_PROCESS_TIMEOUT=600 composer --ansi test
--
To view, visit https://gerrit.wikimedia.org/r/264990
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia69e1a28ac222987b667ef4a9098ed2fa3183506
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits