Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/315942

Change subject: (WIP) MediaWiki tests with composer (WIP)
......................................................................

(WIP) MediaWiki tests with composer (WIP)

Aim is to run MW tests against each support branches on a regular basis.

Change-Id: I68e93cd15135d275a05484499a357a82e5866482
---
M jjb/mediawiki-extensions.yaml
M jjb/mediawiki.yaml
2 files changed, 56 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/42/315942/1

diff --git a/jjb/mediawiki-extensions.yaml b/jjb/mediawiki-extensions.yaml
index e52b2db..0cc7c9e 100644
--- a/jjb/mediawiki-extensions.yaml
+++ b/jjb/mediawiki-extensions.yaml
@@ -96,8 +96,14 @@
 - builder:
     name: prepare-mediawiki-zuul-project-no-vendor
     builders:
-     - shell: "echo $ZUUL_PROJECT > extensions_load.txt"
-     - shell: "echo -e $EXT_DEPENDENCIES >> extensions_load.txt"
+     - shell: |
+         if [ "${ZUUL_PROJECT:-}" ]; then
+             echo $ZUUL_PROJECT > extensions_load.txt
+             echo -e $EXT_DEPENDENCIES >> extensions_load.txt
+         else
+             echo "ZUUL_PROJECT is not set. Using extensions_load.txt:"
+             cat extensions_load.txt
+         fi
      - zuul-cloner:
          projects: >
              mediawiki/core
diff --git a/jjb/mediawiki.yaml b/jjb/mediawiki.yaml
index 132e9f7..ea3b664 100644
--- a/jjb/mediawiki.yaml
+++ b/jjb/mediawiki.yaml
@@ -66,6 +66,53 @@
      - jsduck
 
 - job:
+    name: mediawiki-release-integration
+    project-type: matrix
+    description: '<a 
href="https://www.mediawiki.org/wiki/Version_lifecycle";>MediaWiki version 
lifecycle</a>'
+    execution-strategy:
+        sequential: true
+    axes:
+      - axis:
+          type: label-expression
+          name: label
+          values:
+           - integration-slave-jessie-1001
+      - axis:
+          type: user-defined
+          # Must be ZUUL_BRANCH for zuul-cloner to fetch the proper branch
+          name: ZUUL_BRANCH
+          values:
+           - master
+           - REL1_27
+           - REL1_26
+           - REL1_23
+
+    properties:
+     - build-discarder:
+         days-to-keep: 15
+    builders:
+     - shell: |
+         rm -fR release/
+         git clone https://gerrit.wikimedia.org/r/p/mediawiki/tools/release.git
+     - shell: |
+        if [[ "$ZUUL_BRANCH" =~ REL([0-9]+)_([0-9]+) ]]; then
+            mwversion="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.0"
+        fi
+         set -o pipefail
+         ./release/make-release/make-release.py --list-bundled $mwversion | 
sed -e 's%^%mediawiki/%' | tee extensions_load.txt
+     - shell: |
+         echo "Purging MediaWiki from composer/extensions/skins"
+         git -C ./src clean -d -ff -x || :
+     - hhvm-clear-hhbc
+     - prepare-mediawiki-zuul-project-no-vendor
+     - shell: "/srv/deployment/integration/slave-scripts/bin/mw-phpunit.sh"
+    publishers:
+     - junit:
+        results: 'log/junit*.xml'
+     - mw-teardown-mysql
+     - archive-log-dir
+
+- job:
     name: 'mediawiki-core-jsduck-publish'
     node: contintLabsSlave && UbuntuTrusty
     defaults: use-remote-zuul-no-submodules
@@ -298,6 +345,7 @@
         - php53
         - php55
     jobs:
+      - 'mediawiki-release-integration'
       - 'mediawiki-core-qunit-jessie'
       - 'mediawiki-core-jsduck'
       - 'mediawiki-core-npm-node-4-jessie'

-- 
To view, visit https://gerrit.wikimedia.org/r/315942
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68e93cd15135d275a05484499a357a82e5866482
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to