~ salmonella-environment-setup (master) 04ab2b4f47441727b353c6ed6e77dda6e0824c2d


commit 04ab2b4f47441727b353c6ed6e77dda6e0824c2d
Author:     Mario Domenech Goulart <mario.goulart@gmail.com>
AuthorDate: Sun Jan 19 17:49:46 2014 -0200
Commit:     Mario Domenech Goulart <mario.goulart@gmail.com>
CommitDate: Sun Jan 19 17:51:03 2014 -0200

    salmonella: add configuration files and runner script for salmonella-linux-x86

diff --git a/salmonella-linux-x86/master-clang.conf b/salmonella-linux-x86/master-clang.conf
new file mode 100644
index 0000000..8f7a89b
--- /dev/null
+++ b/salmonella-linux-x86/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/master-debugbuild.conf b/salmonella-linux-x86/master-debugbuild.conf
new file mode 100644
index 0000000..9609125
--- /dev/null
+++ b/salmonella-linux-x86/master-debugbuild.conf
@@ -0,0 +1,18 @@
+(use salmonella-run-publish-params posix files)
+
+;; (keep-repo? #t)
+
+;; gcc-4.7.2 causes problems with master as of
+;; 445e245a54b56e232236c3a47ce4905ca79b2007 (see
+;; http://bugs.call-cc.org/ticket/916#comment:7 ), so we use 4.6.
+(c-compiler "gcc-4.6")
+(c-compiler-publish-name "gcc")
+
+(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/master.conf b/salmonella-linux-x86/master.conf
new file mode 100644
index 0000000..050e05b
--- /dev/null
+++ b/salmonella-linux-x86/master.conf
@@ -0,0 +1,14 @@
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+
+;; gcc-4.7.2 causes problems with master as of
+;; 445e245a54b56e232236c3a47ce4905ca79b2007 (see
+;; http://bugs.call-cc.org/ticket/916#comment:7 ), so we use 4.6.
+(c-compiler "gcc-4.6")
+(c-compiler-publish-name "gcc")
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86/prerelease.conf b/salmonella-linux-x86/prerelease.conf
new file mode 100644
index 0000000..a9bbd84
--- /dev/null
+++ b/salmonella-linux-x86/prerelease.conf
@@ -0,0 +1,16 @@
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+(chicken-core-branch "prerelease")
+(skip-eggs (cons 'scsh-process (skip-eggs)))
+
+;; gcc-4.7.2 causes problems with master as of
+;; 445e245a54b56e232236c3a47ce4905ca79b2007 (see
+;; http://bugs.call-cc.org/ticket/916#comment:7 ), so we use 4.6.
+(c-compiler "gcc-4.6")
+(c-compiler-publish-name "gcc")
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
diff --git a/salmonella-linux-x86/run-salmonella.sh b/salmonella-linux-x86/run-salmonella.sh
new file mode 100755
index 0000000..00d4251
--- /dev/null
+++ b/salmonella-linux-x86/run-salmonella.sh
@@ -0,0 +1,39 @@
+#! /bin/sh
+
+set -x
+
+logfile="$HOME/salmonella/watchdog.log"
+
+###
+### 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-i386/
+export BVSPIS_PATH=/usr/local/bvspis
+export LC_ALL=C
+export LANG=C
+
+rm -rf salmonella-run-publish
+
+debugbuild=
+#for branch in master-clang stability master-debugbuild master; do
+for branch in master-debugbuild master-clang stability master; do
+    rm -rf salmonella-$branch
+    if [ "$branch" = "master-debugbuild" ]; then
+	debugbuild=1
+    else
+	debugbuild=
+    fi
+    DEBUGBUILD=$debugbuild salmonella-run-publish ~/src/chicken-infrastructure/salmonella/do-machine/${branch}.conf
+    mv salmonella-run-publish salmonella-$branch
+done
diff --git a/salmonella-linux-x86/stability.conf b/salmonella-linux-x86/stability.conf
new file mode 100644
index 0000000..9286647
--- /dev/null
+++ b/salmonella-linux-x86/stability.conf
@@ -0,0 +1,20 @@
+;; -*- scheme -*-
+(use salmonella-run-publish-params posix files)
+
+(keep-repo? #t)
+(chicken-core-branch "stability/4.8.0")
+
+;; gcc-4.7.2 causes problems with master as of
+;; 445e245a54b56e232236c3a47ce4905ca79b2007 (see
+;; http://bugs.call-cc.org/ticket/916#comment:7 ), so we use 4.6.
+(c-compiler "gcc-4.6")
+(c-compiler-publish-name "gcc")
+
+(branch-publish-transformer
+  (lambda (branch)
+    "stability-4.8.0.x"))
+
+(web-dir
+ (make-pathname (list (get-environment-variable "HOME")
+                      "salmonella")
+                "reports"))
Trap