Ensure opam gets updated occasionally

Signed-off-by: David Allsopp <david.allsopp@metastack.com>
This commit is contained in:
David Allsopp 2017-11-09 15:51:37 +00:00
parent 1ccf71904e
commit 5a2c5af811
1 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,13 @@ case "$TARGET" in
opam pin remove jbuilder --no-action --yes
opam remove jbuilder --yes
fi
DATE=$(date +%Y%m%d)
if [ ! -e ~/.opam/last-update ] || [ $(cat ~/.opam/last-update) != $DATE ] ; then
opam update --yes
echo $DATE> ~/.opam/last-update
UPDATE_OPAM=1
opam upgrade --yes
fi
opam list
opam pin add jbuilder . --no-action --yes
opam install ocaml-migrate-parsetree js_of_ocaml-ppx --yes