Permalink
Browse files

sync latest jenkins scripts

  • Loading branch information...
1 parent 367a423 commit a5b466a8283c626b734424cd263364196d86e12a @avsm avsm committed Oct 7, 2012
Showing with 16 additions and 4 deletions.
  1. +1 −1 jenkins/10-opam-prepare.sh
  2. +2 −3 jenkins/30-opam-packages.sh
  3. +13 −0 jenkins/31-opam-mirage-packages.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-apt-get -y install ocaml libssl-dev
+apt-get -y install ocaml libssl-dev ocaml-compiler-libs
@@ -1,9 +1,8 @@
#!/bin/sh -ex
OPAM=$HOME/opam-bin/bin/opam
-ROOT="`pwd`/.opam"
-rm -rf .opam
+ROOT=`echo /b/${JOB_NAME} | sed -e s,=,_,g`
+rm -rf ${ROOT}
$OPAM --yes --root $ROOT init .
-$OPAM --yes --root $ROOT remote -add dev git://github.com/mirage/opam-repo-dev
if [ "${compiler}" != "system" ]; then
$OPAM --yes --root $ROOT switch ${compiler}
fi
@@ -0,0 +1,13 @@
+#!/bin/sh -ex
+OPAM=$HOME/opam-bin/bin/opam
+ROOT=`echo /b/${JOB_NAME} | sed -e s,=,_,g`
+rm -rf ${ROOT}
+$OPAM --yes --root $ROOT init .
+$OPAM --yes --root $ROOT remote -add dev git://github.com/mirage/opam-repo-dev
+if [ "${compiler}" != "system" ]; then
+ $OPAM --yes --root $ROOT switch ${compiler}
+fi
+if [ "${packages}" = "all" ]; then
+ packages=`$OPAM --root $ROOT list -short`
+fi
+$OPAM --yes --root $ROOT install ${packages}

0 comments on commit a5b466a

Please sign in to comment.