Skip to content

Commit

Permalink
Merge pull request #13 from rgrinberg/jbuilder
Browse files Browse the repository at this point in the history
Switch to jbuilder
  • Loading branch information
samoht authored Jun 20, 2017
2 parents 1d3055f + 334b518 commit dfeb2cf
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 174 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ tmp
*.install
*.native
*.byte
.merlin
4 changes: 0 additions & 4 deletions .merlin

This file was deleted.

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
- PACKAGE="base64"
- PRE_INSTALL_HOOK="cd /home/opam/opam-repository && git pull origin master && opam update -u -y"
matrix:
- DISTRO=debian-stable OCAML_VERSION=4.01.0
- DISTRO=debian-testing OCAML_VERSION=4.02.3
- DISTRO=debian-unstable OCAML_VERSION=4.03.0
- DISTRO=ubuntu-16.04 OCAML_VERSION=4.04.0
Expand Down
5 changes: 0 additions & 5 deletions _tags

This file was deleted.

12 changes: 6 additions & 6 deletions opam → base64.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ bug-reports: "https://github.com/mirage/ocaml-base64/issues"
dev-repo: "https://github.com/mirage/ocaml-base64.git"
depends: [
"base-bytes"
"ocamlfind" {build}
"ocamlbuild" {build}
"topkg" {build}
"jbuilder" {build & >= "1.0+beta10"}
"bos" {test}
"rresult" {test}
"alcotest" {test}
]
build: [ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "false" ]
build: [
["jbuilder" "subst"] {pinned}
["jbuilder" "build" "-p" name "-j" jobs]
]
build-test: [
[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true" ]
[ "ocaml" "pkg/pkg.ml" "test" ]
["jbuilder" "runtest" "-p" name]
]
24 changes: 0 additions & 24 deletions build

This file was deleted.

1 change: 0 additions & 1 deletion doc/api.odocl

This file was deleted.

1 change: 0 additions & 1 deletion doc/dev.odocl

This file was deleted.

112 changes: 0 additions & 112 deletions doc/style.css

This file was deleted.

8 changes: 0 additions & 8 deletions pkg/META

This file was deleted.

9 changes: 1 addition & 8 deletions pkg/pkg.ml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
#!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg

let () =
Pkg.describe "base64" @@ fun c ->
Ok [ Pkg.mllib "src/b64.mllib";
Pkg.test "test/test" ]
#require "topkg-jbuilder.auto"
4 changes: 0 additions & 4 deletions src/b64.mllib

This file was deleted.

7 changes: 7 additions & 0 deletions src/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(jbuild_version 1)

(library
((name base64)
(wrapped false)
(public_name base64)
(libraries (bytes))))
10 changes: 10 additions & 0 deletions test/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(jbuild_version 1)

(executable
((name test)
(libraries (base64 rresult alcotest bos))))

(alias
((name runtest)
(deps (test.exe))
(action (run ${<}))))

0 comments on commit dfeb2cf

Please sign in to comment.