Skip to content

Commit

Permalink
Merge pull request #8 from avsm/rel-0.3
Browse files Browse the repository at this point in the history
release 0.3
  • Loading branch information
avsm authored Jul 3, 2017
2 parents 4aab1a7 + 6664d19 commit 4ab0fc0
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 36 deletions.
6 changes: 0 additions & 6 deletions .merlin

This file was deleted.

12 changes: 8 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
v0.2 (2017-05-18)
## v0.3 2017-07-03

- Build tweaks to support topkg versioning (@avsm)

## v0.2 2017-05-18

- add example program and update README
- switch to jbuilder
- throw a clearer error on registering a duplicate metric
- use `Re` rather than `Str`

v0.1
----
## v0.1

Initial release.
- Initial release.
39 changes: 25 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
PINOPTS=-y -k git

TESTS = true
.PHONY: build clean test

.PHONY: all clean prometheus
build:
jbuilder build @install

all: prometheus prometheus-app
@
test:
jbuilder runtest

depends:
opam pin add ${PINOPTS} prometheus .
opam pin add ${PINOPTS} prometheus-app .
install:
jbuilder install

prometheus-app:
jbuilder build @runtest

prometheus:
jbuilder build --only-packages prometheus
uninstall:
jbuilder uninstall

clean:
rm -rf _build
rm -rf _build *.install

REPO=../../mirage/opam-repository
PACKAGES=$(REPO)/packages
# until we have https://github.com/ocaml/opam-publish/issues/38
pkg-%:
topkg opam pkg -n $*
mkdir -p $(PACKAGES)/$*
cp -r _build/$*.* $(PACKAGES)/$*/
cd $(PACKAGES) && git add $*

PKGS=$(basename $(wildcard *.opam))
opam-pkg:
$(MAKE) $(PKGS:%=pkg-%)


3 changes: 0 additions & 3 deletions doc/api.odocl

This file was deleted.

3 changes: 3 additions & 0 deletions pkg/pkg.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ocaml
#use "topfind"
#require "topkg-jbuilder.auto"
10 changes: 5 additions & 5 deletions prometheus-app.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ dev-repo: "https://github.com/mirage/prometheus.git"
doc: "https://mirage.github.io/prometheus/"

build: [
[ "jbuilder" "build" "--only-packages=prometheus,prometheus-app" ]
[ "jbuilder" "subst" ] {pinned}
[ "jbuilder" "build" "-p" name "-j" jobs ]
]

build-test: [
[ "jbuilder" "runtest" ]
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

depends: [
"ocamlfind" {build}
"jbuilder" {build}
"jbuilder" {build & >="1.0+beta10"}
"prometheus"
"fmt"
"re"
"cohttp" {>="0.20.0"}
"cohttp" {>="0.20.0" & <"0.99"}
"lwt" {>="2.5.0"}
"alcotest" {test}
]
Expand Down
6 changes: 3 additions & 3 deletions prometheus.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ dev-repo: "https://github.com/mirage/prometheus.git"
doc: "https://mirage.github.io/prometheus/"

build: [
[ "jbuilder" "build" "--only-packages=prometheus" ]
[ "jbuilder" "subst" ] {pinned}
[ "jbuilder" "build" "-p" name "-j" jobs ]
]

depends: [
"ocamlfind" {build}
"jbuilder" {build}
"jbuilder" {build & >="1.0+beta10"}
"astring"
"asetmap"
"fmt"
Expand Down
1 change: 0 additions & 1 deletion prometheus.version

This file was deleted.

0 comments on commit 4ab0fc0

Please sign in to comment.