Thcipriani has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/347130 )

Change subject: PoC: Port existing Trusty jobs to Docker
......................................................................

PoC: Port existing Trusty jobs to Docker

It would be nice to have a homogenous bunch of CI machines that only
need zuul, git, and docker-engine to run tests -- this patch is a
proof-of-concept towards that end.

This is a new job that does the same work as
mediawiki-phpunit-php55-trusty but it does so on a Debian Jessie Jenkins
agent node. This job is currently working, but the approach needs some
vetting and more eyes generally.

For this I re-used the integration-slave-docker-1000 box that marxarelli
built, I have some shell scripts in /srv/deployment/integration/docker
on that machine. Scripts are here:
https://github.com/thcipriani/integration-docker

Change-Id: Ied83cd30ad91f723d8174d754511139c88ba1161
---
M jjb/mediawiki.yaml
1 file changed, 38 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/30/347130/1

diff --git a/jjb/mediawiki.yaml b/jjb/mediawiki.yaml
index 4a95345..f7e3fe6 100644
--- a/jjb/mediawiki.yaml
+++ b/jjb/mediawiki.yaml
@@ -154,6 +154,44 @@
      - archive-log-dir
      - castor-save
 
+- job:
+    name: 'mediawiki-phpunit-php55-trusty-docker'
+    node: DebianJessieDocker
+    concurrent: true
+    triggers:
+     - zuul
+    builders:
+     - castor-load
+     - zuul-cloner:
+         projects: >
+             mediawiki/core
+             mediawiki/vendor
+     - shell: |
+       #!/bin/bash -eu
+       cp /srv/deployment/integration/dockerfiles/Dockerfile.php-trusty 
./Dockerfile
+
+       cat /srv/deployment/integration/dockerfiles/parts/mw-install-mysql >> 
Dockerfile
+       cat /srv/deployment/integration/dockerfiles/parts/mw-apply-settings >> 
Dockerfile
+       cat /srv/deployment/integration/dockerfiles/parts/mw-fetch-composer-dev 
>> Dockerfile
+       cat /srv/deployment/integration/dockerfiles/parts/mw-phpunit >> 
Dockerfile
+       # WEEEEEEEEEEEEEE UGLY HACKS!
+       cat /srv/deployment/integration/dockerfiles/parts/ugly-hacks >> 
Dockerfile
+
+       cat <<TEST >> Dockerfile
+       ENTRYPOINT /run.sh
+       TEST
+
+       sed -i -e "s#{{EXECUTOR_NUMBER}}#${EXECUTOR_NUMBER}#g" \
+              -e "s#{{WORKSPACE}}#/job#g" Dockerfile
+
+       cp -R /srv/deployment/integration/dockerfiles/files ./.dockerfiles
+       docker build -t "$JOB_NAME:$BUILD_TAG" .
+       docker run -v $WORKSPACE:/job "$JOB_NAME:$BUILD_TAG"
+    publishers:
+     - phpunit-junit-2
+     - archive-log-dir
+     - castor-save
+
 # Same as mediawiki-phpunit-{phpflavor}, except uses composer instead of 
mediawiki/vendor.
 # Currently experimental, will eventually be used for `master`, and
 # wmf/ branches will use mediawiki/vendor. See T90303.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied83cd30ad91f723d8174d754511139c88ba1161
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Thcipriani <tcipri...@wikimedia.org>

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

Reply via email to