~ salmonella-environment-setup (master) 15d4b4bd66e0d01ee05c6b3821c88f6b4510e5d3


commit 15d4b4bd66e0d01ee05c6b3821c88f6b4510e5d3
Author:     Mario Domenech Goulart <mario.goulart@gmail.com>
AuthorDate: Thu Jan 23 21:06:14 2014 -0200
Commit:     Mario Domenech Goulart <mario.goulart@gmail.com>
CommitDate: Thu Jan 23 21:06:14 2014 -0200

    salmonella: add configuration files for salmonella-linux-x86-64

diff --git a/salmonella-linux-x86-64/master-clang.conf b/salmonella-linux-x86-64/master-clang.conf
new file mode 100644
index 0000000..8f7a89b
--- /dev/null
+++ b/salmonella-linux-x86-64/master-clang.conf
@@ -0,0 +1,9 @@
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+(c-compiler "clang")
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86-64/master-debugbuild.conf b/salmonella-linux-x86-64/master-debugbuild.conf
new file mode 100644
index 0000000..f7fe012
--- /dev/null
+++ b/salmonella-linux-x86-64/master-debugbuild.conf
@@ -0,0 +1,10 @@
+(use salmonella-run-publish-params posix files)
+
+(branch-publish-transformer
+  (lambda (branch)
+    (string-append branch "-debugbuild")))
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86-64/master.conf b/salmonella-linux-x86-64/master.conf
new file mode 100644
index 0000000..e6c2278
--- /dev/null
+++ b/salmonella-linux-x86-64/master.conf
@@ -0,0 +1,8 @@
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86-64/prerelease.conf b/salmonella-linux-x86-64/prerelease.conf
new file mode 100644
index 0000000..ff65205
--- /dev/null
+++ b/salmonella-linux-x86-64/prerelease.conf
@@ -0,0 +1,10 @@
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+(chicken-core-branch "prerelease")
+(skip-eggs (cons 'scsh-process (skip-eggs)))
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86-64/run-salmonella.sh b/salmonella-linux-x86-64/run-salmonella.sh
new file mode 100755
index 0000000..d6fd2b4
--- /dev/null
+++ b/salmonella-linux-x86-64/run-salmonella.sh
@@ -0,0 +1,44 @@
+#! /bin/sh
+
+set -x
+
+logfile="$HOME/salmonella/watchdog.log"
+
+mkdir -p salmonella/build
+cd salmonella/build
+
+###
+### Prevent two salmonellas from running simultaneously
+###
+while ps ax | grep '[s]almonella-run-publish'; do
+    echo "[`date`] Salmonella still running" >> $logfile
+    sleep 1h
+done
+
+
+###
+### Actually run salmonella
+###
+
+export PATH=$HOME/local/chicken/bin:$PATH
+export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
+export BVSPIS_PATH=/usr/local/bvspis
+export LC_ALL=C
+export LANG=C
+
+# The inline egg writes some stuff to the home dir
+rm -rf ~/.chicken-inline
+
+rm -rf salmonella-run-publish
+
+debugbuild=
+for branch in master-debugbuild master-clang stability master prerelease; do
+    rm -rf salmonella-$branch
+    if [ "$branch" = "master-debugbuild" ]; then
+	debugbuild=1
+    else
+	debugbuild=
+    fi
+    DEBUGBUILD=$debugbuild salmonella-run-publish ~/src/chicken-infrastructure/salmonella/salmonella-linux-x86-64/${branch}.conf
+    mv salmonella-run-publish salmonella-$branch
+done
diff --git a/salmonella-linux-x86-64/stability.conf b/salmonella-linux-x86-64/stability.conf
new file mode 100644
index 0000000..f199b89
--- /dev/null
+++ b/salmonella-linux-x86-64/stability.conf
@@ -0,0 +1,14 @@
+;; -*- scheme -*-
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+(chicken-core-branch "stability/4.8.0")
+
+(branch-publish-transformer
+  (lambda (branch)
+    "stability-4.8.0.x"))
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
Trap