Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
OPAM_DEPENDS="xapi-idl async async_inotify core message-switch xapi-storage"
case "$OCAML_VERSION,$OPAM_VERSION" in
3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
*) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
esac

echo "yes" | sudo add-apt-repository ppa:$ppa
sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam

export OPAMYES=1
#export OPAMVERBOSE=1
echo OCaml version
ocaml -version
echo OPAM versions
opam --version
opam --git-version

opam init
# ocamlscript doesn't read .ocamlinit so the ocamlfind opam workaround breaks.
# This is a workaround workaround:
opam install ocamlfind
sudo mkdir -p $(ocamlc -where)
eval `opam config env`
sudo cp $OCAML_TOPLEVEL_PATH/topfind $(ocamlc -where)

opam remote add xapi git://github.com/xapi-project/opam-repo-dev
depext=`opam install -e ubuntu $OPAM_DEPENDS`
sudo apt-get install -qq $depext
opam install ${OPAM_DEPENDS}
eval `opam config env`
make
echo Running make test
make test
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: c
script: bash -ex .travis-ci.sh
env:
- OCAML_VERSION=4.01.0 OPAM_VERSION=1.1.0
6 changes: 5 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
trunk (unreleased)
0.1.1 (17-Oct-2014)
- Now daemonizes properly
- Logs to syslog

0.1 (16-Oct-2014)
- Initial version
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BINDIR?=/tmp/
MANDIR?=/tmp/

.PHONY: install uninstall clean
.PHONY: install uninstall clean test

all: main.native main.1

Expand All @@ -26,5 +26,8 @@ uninstall:
rm -f ${BINDIR}/xapi-script-storage
rm -f ${MANDIR}/man1/xapi-script-storage.1

test:
@echo No tests implemented yet

clean:
rm -rf _build setup.data main.1 version.ml
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1
0.1.1