-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from anuragsoni/switch-to-opam-2
Pre-requisite for a new release
- Loading branch information
Showing
16 changed files
with
118 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,5 @@ examples/static_serve_override | |
examples/uppercase_middleware | ||
lib_test/routes | ||
*.merlin | ||
*.install | ||
*.install | ||
_opam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
language: c | ||
sudo: false | ||
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh | ||
script: bash -ex .travis-docker.sh | ||
services: | ||
- docker | ||
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh | ||
script: bash -ex ./.travis-docker.sh | ||
- docker | ||
env: | ||
global: | ||
- EXTRA_REMOTES="https://github.com/mirage/mirage-dev.git" | ||
- PINS="opium_kernel:. opium:." | ||
matrix: | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-16.04" OCAML_VERSION="4.04.2" | ||
- PACKAGE="opium" DISTRO="ubuntu-16.04" OCAML_VERSION="4.04.2" | ||
- PACKAGE="opium_kernel" DISTRO="alpine" OCAML_VERSION="4.03.0" | ||
- PACKAGE="opium" DISTRO="alpine" OCAML_VERSION="4.03.0" | ||
- PACKAGE="opium_kernel" DISTRO="debian-unstable" OCAML_VERSION="4.03.0" | ||
- PACKAGE="opium" DISTRO="debian-unstable" OCAML_VERSION="4.03.0" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-18.04" OCAML_VERSION="4.04" | ||
- PACKAGE="opium" DISTRO="ubuntu-18.04" OCAML_VERSION="4.04" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-18.04" OCAML_VERSION="4.05" | ||
- PACKAGE="opium" DISTRO="ubuntu-18.04" OCAML_VERSION="4.05" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-18.04" OCAML_VERSION="4.06" | ||
- PACKAGE="opium" DISTRO="ubuntu-18.04" OCAML_VERSION="4.06" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-18.04" OCAML_VERSION="4.07" | ||
- PACKAGE="opium" DISTRO="ubuntu-18.04" OCAML_VERSION="4.07" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" | ||
- PACKAGE="opium" DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" | ||
- PACKAGE="opium" DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" | ||
- PACKAGE="opium" DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" | ||
- PACKAGE="opium_kernel" DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" | ||
- PACKAGE="opium" DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" | ||
- PACKAGE="opium_kernel" DISTRO="alpine" OCAML_VERSION="4.04" | ||
- PACKAGE="opium" DISTRO="alpine" OCAML_VERSION="4.04" | ||
- PACKAGE="opium_kernel" DISTRO="alpine" OCAML_VERSION="4.05" | ||
- PACKAGE="opium" DISTRO="alpine" OCAML_VERSION="4.05" | ||
- PACKAGE="opium_kernel" DISTRO="alpine" OCAML_VERSION="4.06" | ||
- PACKAGE="opium" DISTRO="alpine" OCAML_VERSION="4.06" | ||
- PACKAGE="opium_kernel" DISTRO="alpine" OCAML_VERSION="4.07" | ||
- PACKAGE="opium" DISTRO="alpine" OCAML_VERSION="4.07" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 1.5) | ||
(name opium) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(lang dune 1.5) | ||
|
||
;; This file is used by `make all-supported-ocaml-versions` | ||
(context (opam (switch 4.04.2))) | ||
(context (opam (switch 4.05.0))) | ||
(context (opam (switch 4.06.0))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(executables | ||
(libraries re ezjsonm opium) | ||
(preprocess | ||
(pps ppx_sexp_conv) | ||
) | ||
(flags | ||
(:standard -safe-string) | ||
) | ||
(names auth_middleware exit_hook_example hello_world_basic hello_world_html hello_world middleware_ua read_json_body sample static_serve_override uppercase_middleware) | ||
) | ||
|
||
(alias | ||
(name DEFAULT) | ||
(deps auth_middleware.exe exit_hook_example.exe hello_world_basic.exe hello_world_html.exe hello_world.exe middleware_ua.exe read_json_body.exe sample.exe static_serve_override.exe uppercase_middleware.exe) | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(test | ||
(name routes) | ||
(libraries alcotest opium) | ||
(package opium) | ||
(flags | ||
(:standard -safe-string) | ||
) | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,40 @@ | ||
opam-version: "1.2" | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
authors: ["Rudi Grinberg"] | ||
license: "MIT" | ||
|
||
homepage: "https://github.com/rgrinberg/opium" | ||
bug-reports: "https://github.com/rgrinberg/opium/issues" | ||
dev-repo: "https://github.com/rgrinberg/opium.git" | ||
dev-repo: "git+https://github.com/rgrinberg/opium.git" | ||
synopsis: "Sinatra like web toolkit based on Lwt + Cohttp" | ||
description: """ | ||
Opium is a minimalistic library for quickly binding functions to http routes. Its features include (but not limited to): | ||
|
||
Middleware system for app independent components | ||
A simple router for matching urls and parsing parameters | ||
Request/Response pretty printing for easier debugging | ||
""" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build} | ||
"ocaml" {>= "4.04.1"} | ||
"dune" {build} | ||
"opium_kernel" | ||
"cohttp-lwt-unix" {>= "0.99.0"} | ||
"base-unix" | ||
"lwt" | ||
"lwt_log" | ||
"logs" | ||
"cmdliner" | ||
"ppx_fields_conv" {>= "v0.9.0"} | ||
"ppx_sexp_conv" {>= "v0.9.0"} | ||
"re" {>= "1.3.0"} | ||
"magic-mime" | ||
"stringext" | ||
"alcotest" {test} | ||
"cow" {test & >= "0.10.0"} | ||
"alcotest" {with-test} | ||
"cow" {with-test & >= "0.10.0"} | ||
] | ||
|
||
available: [ocaml-version >= "4.02.3"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(library | ||
(public_name opium) | ||
(flags | ||
(:standard -safe-string) | ||
) | ||
(preprocess | ||
(pps ppx_sexp_conv ppx_fields_conv) | ||
) | ||
(libraries opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext) | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
opam-version: "1.2" | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
authors: ["Rudi Grinberg"] | ||
license: "MIT" | ||
|
||
homepage: "https://github.com/rgrinberg/opium" | ||
bug-reports: "https://github.com/rgrinberg/opium/issues" | ||
dev-repo: "https://github.com/rgrinberg/opium.git" | ||
dev-repo: "git+https://github.com/rgrinberg/opium.git" | ||
synopsis: "Sinatra like web toolkit based on Lwt + Cohttp" | ||
description: """ | ||
Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage. | ||
""" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build} | ||
"ocaml" {>= "4.04.1"} | ||
"dune" {build} | ||
"hmap" | ||
"cohttp" {>= "0.99.0"} | ||
"cohttp-lwt" {>= "0.99.0"} | ||
|
@@ -26,8 +31,6 @@ depends: [ | |
"ppx_fields_conv" {>= "v0.9.0"} | ||
"ppx_sexp_conv" {>= "v0.9.0"} | ||
"re" {>= "1.3.0"} | ||
"alcotest" {test} | ||
"cow" {test & >= "0.10.0"} | ||
"alcotest" {with-test} | ||
"cow" {with-test & >= "0.10.0"} | ||
] | ||
|
||
available: [ocaml-version >= "4.02.3"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(library | ||
(public_name opium_kernel) | ||
(flags | ||
(:standard -safe-string) | ||
) | ||
(preprocess | ||
(pps ppx_sexp_conv ppx_fields_conv) | ||
) | ||
(libraries hmap cohttp-lwt ezjsonm) | ||
) |
This file was deleted.
Oops, something went wrong.