chiark / gitweb /
jenkins-build-all: use local mediawiki if available
authorHans-Christoph Steiner <hans@eds.org>
Thu, 11 Jan 2018 15:47:49 +0000 (16:47 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 11 Jan 2018 15:47:49 +0000 (16:47 +0100)
jenkins-build-all

index 3308f61ed2f0f998f59f77397340588244e3c9c7..66ee3610280ca96e99becdadbd617533bfa5c79d 100755 (executable)
@@ -76,7 +76,19 @@ else
 fi
 
 echo "build_server_always = True" > config.py
-$WORKSPACE/fdroid build --verbose --latest --no-tarball --all
+# if the local mediawiki is available, then use it
+if nc -z -w1 localhost 32445; then
+    wikiflag="--wiki"
+    echo "wiki_protocol = 'http'" >> config.py
+    echo "wiki_server = 'localhost:32445'" >> config.py
+    echo "wiki_path = '/mediawiki/'" >> config.py
+    echo "wiki_user = 'fdroid'" >> config.py
+    echo "wiki_password = 'update.TestCase'" >> config.py
+else
+    sed -i '/^wiki_/d' config.py
+fi
+
+$WORKSPACE/fdroid build --verbose --latest --no-tarball --all $wikiflag
 
 vagrant global-status
 cd builder