Skip to content

Commit c6eef52

Browse files
author
Konstantina Chremmou
authored
Merge pull request xapi-project#11 from kc284/master
CP-26405: Ported build from oasis to jbuilder.
2 parents a164d04 + 37b8c5a commit c6eef52

File tree

17 files changed

+494
-550
lines changed

17 files changed

+494
-550
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_build
2+
.merlin
3+
*.install
4+
5+
*.rej
6+
*.orig

.travis.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
language: c
2-
sudo: required
3-
dist: trusty
4-
before_install:
5-
- sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ trusty main universe"
6-
- sudo apt-get update -qq
7-
- sudo apt-get install libgcrypt20 liblzma5 libselinux1
8-
- wget "http://archive.ubuntu.com/ubuntu/ubuntu/pool/main/s/systemd/libsystemd0_219-7ubuntu3_amd64.deb"
9-
- wget "http://archive.ubuntu.com/ubuntu/ubuntu/pool/main/s/systemd/libsystemd-dev_219-7ubuntu3_amd64.deb"
10-
- sudo dpkg -i libsystemd0_219-7ubuntu3_amd64.deb libsystemd-dev_219-7ubuntu3_amd64.deb
11-
- git clone https://github.com/xapi-project/xs-opam && cd xs-opam && sh into_repo.sh && cd -
122
install:
13-
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh
3+
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
144
script:
15-
- bash -ex .travis-opam.sh
5+
- bash -ex .travis-docker.sh
6+
sudo: required
7+
services:
8+
- docker
169
env:
1710
global:
18-
- OCAML_VERSION=4.02
11+
- OCAML_VERSION=4.04.2
1912
- PACKAGE=xapi-tapctl
13+
- DISTRO="debian-stable"
2014
matrix:
21-
- BASE_REMOTE=$TRAVIS_BUILD_DIR/xs-opam
22-
- EXTRA_REMOTES=$TRAVIS_BUILD_DIR/xs-opam
15+
- BASE_REMOTE=git://github.com/xapi-project/xs-opam
16+
- EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
2317
matrix:
24-
fast_finish: true
25-
allow_failures:
26-
- env: EXTRA_REMOTES=$TRAVIS_BUILD_DIR/xs-opam
18+
fast_finish: true
19+
allow_failures:
20+
- env: EXTRA_REMOTES=git://github.com/xapi-project/xs-opam

INSTALL

Lines changed: 0 additions & 14 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ include a Signed-off-by: line.
88
Maintainers list
99
----------------
1010

11-
* Jonathan Ludlam <jonathan.ludlam@eu.citrix.com>
11+
* Jonathan Ludlam <jonathan.ludlam@citrix.com>
1212

Makefile

Lines changed: 20 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,32 @@
1-
# OASIS_START
2-
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
1+
OPAM_PREFIX?=$(DESTDIR)$(shell opam config var prefix)
2+
OPAM_LIBDIR?=$(DESTDIR)$(shell opam config var lib)
33

4-
SETUP = ocaml setup.ml
4+
.PHONY: release build install uninstall clean test doc reindent
55

6-
build: setup.data
7-
$(SETUP) -build $(BUILDFLAGS)
6+
release:
7+
jbuilder build @install
88

9-
doc: setup.data build
10-
$(SETUP) -doc $(DOCFLAGS)
9+
build:
10+
jbuilder build @install --dev
1111

12-
test: setup.data build
13-
$(SETUP) -test $(TESTFLAGS)
12+
install:
13+
jbuilder install --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR) xapi-tapctl
1414

15-
all:
16-
$(SETUP) -all $(ALLFLAGS)
17-
18-
install: setup.data
19-
$(SETUP) -install $(INSTALLFLAGS)
20-
21-
uninstall: setup.data
22-
$(SETUP) -uninstall $(UNINSTALLFLAGS)
23-
24-
reinstall: setup.data
25-
$(SETUP) -reinstall $(REINSTALLFLAGS)
15+
uninstall:
16+
jbuilder uninstall --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR) xapi-tapctl
2617

2718
clean:
28-
$(SETUP) -clean $(CLEANFLAGS)
19+
jbuilder clean
2920

30-
distclean:
31-
$(SETUP) -distclean $(DISTCLEANFLAGS)
21+
test:
22+
jbuilder runtest
3223

33-
setup.data:
34-
$(SETUP) -configure $(CONFIGUREFLAGS)
24+
# requires odoc
25+
doc:
26+
jbuilder build @doc
3527

36-
configure:
37-
$(SETUP) -configure $(CONFIGUREFLAGS)
28+
reindent:
29+
git ls-files '*.ml*' | xargs ocp-indent --syntax cstruct -i
3830

39-
.PHONY: build doc test all install uninstall reinstall clean distclean configure
4031

41-
# OASIS_STOP
42-
#
43-
reinstall:
44-
ocamlfind remove tapctl
45-
$(SETUP) -install $(INSTALLFLAGS)
32+
.DEFAULT_GOAL := release

TODO.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Before 1.0:
1+
Before 1.0
22
==========
33

4-
* remove dependency on forkexec
5-
* remove dependency on stdext
6-
* improve ocamldoc
4+
* remove dependency on forkexec
5+
* remove dependency on stdext
6+
* improve ocamldoc

_oasis

Lines changed: 0 additions & 16 deletions
This file was deleted.

_tags

Lines changed: 0 additions & 3 deletions
This file was deleted.

configure

Lines changed: 0 additions & 27 deletions
This file was deleted.

jbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(jbuild_version 1)

0 commit comments

Comments
 (0)