[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/build-kde-org/production] /: add update-setup.py
From: Ben Cooksley <bcooksley () kde ! org>
Date: 2014-05-14 11:33:51
Message-ID: E1WkXRX-0005U8-7T () scm ! kde ! org
[Download RAW message or body]
Git commit d1ec85814018ca1857972890adb1747e6975bdb1 by Ben Cooksley, on behalf of \
Patrick Spendrin. Committed on 14/05/2014 at 11:26.
Pushed by bcooksley into branch 'production'.
add update-setup.py
A +33 -0 update-setup.py
http://commits.kde.org/websites/build-kde-org/d1ec85814018ca1857972890adb1747e6975bdb1
diff --git a/update-setup.py b/update-setup.py
new file mode 100644
index 0000000..4545b02
--- /dev/null
+++ b/update-setup.py
@@ -0,0 +1,33 @@
+#!/usr/bin/python
+import sys
+import os
+import subprocess
+
+# Settings
+if sys.platform == "win32":
+ JENKINS_SLAVE_HOME="C:/Jenkins/scripts"
+else:
+ JENKINS_SLAVE_HOME=os.getenv("HOME") + "/scripts"
+JENKINS_BRANCH="production"
+JENKINS_DEPENDENCY_BRANCH="master"
+
+def getRepository(repoPath, repoUrl, repoBranch="master"):
+ if not os.path.exists(repoPath):
+ os.mkdir(repoPath)
+
+ originalDir = os.getcwd()
+ os.chdir(repoPath)
+
+ if not os.path.exists(".git"):
+ subprocess.call("git clone " + repoUrl + " .", shell=True)
+
+ subprocess.call("git fetch origin", shell=True)
+ subprocess.call("git checkout " + repoBranch, shell=True)
+ subprocess.call("git merge --ff-only origin/" + repoBranch, shell=True)
+
+ os.chdir(originalDir)
+
+getRepository(JENKINS_SLAVE_HOME, "git://anongit.kde.org/kde-build-metadata", \
JENKINS_BRANCH) +getRepository(os.path.join(JENKINS_SLAVE_HOME, "dependencies"), \
"git://anongit.kde.org/kde-build-metadata", JENKINS_DEPENDENCY_BRANCH) \
+getRepository(os.path.join(JENKINS_SLAVE_HOME, "poppler-test-data"), \
"git://git.freedesktop.org/git/poppler/test") \
+getRepository(os.path.join(JENKINS_SLAVE_HOME, "kapidox"), \
"git://anongit.kde.org/kapidox")
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic