summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-07-31 00:59:35 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2012-07-31 00:59:35 +0100
commitf31e8a559d504c6e4ef021d0a5b4b83024a4ca1b (patch)
treeb3fd7a4a02894291202aa1d4374cc4d63e8ed384
parenta7cdce28c5c29ec5d6f5f165d3df3fc81289861a (diff)
Add a bit of documentation
-rw-r--r--README36
1 files changed, 36 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..2a27e9d
--- /dev/null
+++ b/README
@@ -0,0 +1,36 @@
+The goal here is to be able to send a compilation and test farm a set of
+branches to test. To do so, we need, per repository:
+
+ - the git URL where to fetch the code (needs to be reachable by the test
+ farm)
+ - a branch to switch to
+ - a commit to checkout
+
+This small script grabs a set of local checkouts, ensure that the checked out
+branch is pushed to a remote repository and generates the necessary
+information for someone else to checkout the same configuration.
+
+A configuration file (defaults to ~/.gfx-repos) intructs the script which
+checkouts it should look at. Here is an example of such a configuration file:
+
+repositories = {
+ 'kernel': {
+ 'path': '~/gfx/sources/linux-2.6'
+ },
+ 'libdrm': {
+ 'path': '~/gfx/sources/drm',
+ 'remote': 'test-remote',
+ },
+ 'intel-gpu-tools': {
+ 'path': '~/gfx/sources/intel-gpu-tools',
+ },
+}
+
+repositories is a dictionary of dictionaries, mapping a name to a repository
+description. The keys that describe a repository are:
+
+ 'path' (required):
+ The path of the checkout
+
+ 'remote' (optional, defaults to 'origin'):
+ The remote where the local branch should have been pushed already