Permalink
Browse files

Move to an opam-based Jenkins build

  • Loading branch information...
Jens Geiregat
Jens Geiregat committed Oct 18, 2012
1 parent 3ff84bd commit a87e25738c2bb737b59cec5b4a239c5eb285f208
View
@@ -1,6 +0,0 @@
-#!/bin/bash -eux
-export ROOT=$(pwd)/../ROOT/
-export PATH=${ROOT}/OCAML/bin:$PATH
-export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:${ROOT}/OCAML/lib
-ocaml -version
-cd src && make
View
@@ -1,5 +0,0 @@
-#!/bin/bash -eux
-export ROOT=$(pwd)/../ROOT
-export PATH=${ROOT}/OCAML/bin:$PATH
-export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:${ROOT}/OCAML/lib
-cd src && ./bsmgr.byte --hudson
@@ -1,5 +0,0 @@
-#!/bin/bash -eux
-export ROOT=$(pwd)/../ROOT/
-export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:${ROOT}/OCAML/lib
-cd src
-./bsmgr.native --hudson
View
@@ -1,8 +0,0 @@
-#!/bin/bash -eux
-export ROOT=$(pwd)/../ROOT/
-export PATH=${ROOT}/OCAML/bin:$PATH
-export LD_LIBRARY_PATH=${ROOT}/OCAML/lib:/usr/lib:/usr/local/lib
-cd src
-which ocamlfind
-make uninstall
-make install
@@ -0,0 +1,17 @@
+# Will set OPAM
+. ROOT/OPAM/envuser/defaults.sh
+. ROOT/OPAM/envuser/activate.sh
+
+ROOT/OPAM/envuser/post-artifact-copy
+
+eval `$OPAM config -env`
+
+cd src
+make
+#./bsmgr.byte --hudson
+./bsmgr.native --hudson
+
+# Reinstall
+
+make uninstall
+make install
@@ -0,0 +1,3 @@
+if test -e "ROOT/OPAM/envuser/pre-artifact-copy"; then
+ ROOT/OPAM/envuser/pre-artifact-copy
+fi

0 comments on commit a87e257

Please sign in to comment.