Skip to content

Commit

Permalink
chore: Enable coveralls on GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 25, 2021
1 parent 48663ab commit 600f4f3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Expand Up @@ -16,7 +16,10 @@ jobs:

- name: Install dependencies
run: opam install . --deps-only --with-test
- name: Build
run: opam exec -- dune build
- name: Run tests
run: opam exec -- dune runtest
- name: Build and run tests
run: opam exec -- make check
- name: Upload test coverage report to Coveralls
run: opam exec -- bisect-ppx-report send-to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -9,7 +9,7 @@ check: $(patsubst %,%dune,$(dir $(wildcard test/*/*.api.h)))
BISECT_ENABLE=yes dune runtest

coverage: check
bisect-ppx-report -html _coverage/ -I _build/default _build/default/test/*/bisect*.coverage
bisect-ppx-report --html _coverage/ -I _build/default _build/default/test/*/bisect*.coverage

coveralls: check
bisect-ppx-report \
Expand Down
11 changes: 7 additions & 4 deletions apidsl.opam
Expand Up @@ -8,26 +8,29 @@ license: "GPL3"
homepage: "https://github.com/TokTok/apidsl"
bug-reports: "https://github.com/TokTok/apidsl/issues"
depends: [
"dune" {> "1.5"}
"dune" {>= "2.9" & >= "2.9.1"}
"bisect_ppx" {> "0.1"}
"js_of_ocaml-ppx" {> "0.1"}
"menhirLib" {>= "20200211"}
"ppx_deriving_yojson" {> "0.1"}
"tiny_httpd" {> "0.1"}
"yojson" {> "0.1"}
"tiny_httpd" {>= "0.9"}
"yojson" {>= "1.7.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/TokTok/apidsl.git"
6 changes: 3 additions & 3 deletions dune-project
@@ -1,4 +1,4 @@
(lang dune 2.3)
(lang dune 2.9)
(using menhir 2.1)
(generate_opam_files true)

Expand All @@ -12,10 +12,10 @@
(synopsis "Domain Specific Language to describe C APIs")
(description "Domain Specific Language to describe C APIs")
(depends
(dune (> 1.5))
(dune (>= 2.9.1))
(bisect_ppx (> 0.1))
(js_of_ocaml-ppx (> 0.1))
(menhirLib (>= 20200211))
(ppx_deriving_yojson (> 0.1))
(tiny_httpd (>= 0.9))
(yojson (> 0.1))))
(yojson (>= 1.7.0))))

0 comments on commit 600f4f3

Please sign in to comment.