Skip to content

Commit

Permalink
Fixing github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hernoufM committed Aug 16, 2021
1 parent ba453eb commit 05f9f8c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 309 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/doc-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
ocaml-version: 4.10.0
- name: setup-doc
run: |
sudo apt install -yqq python3-sphinx python3-sphinx-rtd-theme
opam install -y dune odoc
sudo apt install -yqq python3-sphinx python3-sphinx-rtd-theme libgeoip-dev
opam install -y dune odoc json-data-encoding json-data-encoding ezjsonm uuidm geoip js_of_ocaml-lwt calendar tls lwt_log cohttp-lwt-jsoo ppxlib
- run: opam pin add . -y --no-action
- run: opam pin https://github.com/hernoufM/digodoc-search-api.git
- run: opam depext -y digodoc digodoc_lib meta_file ez_html htmlize
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: opam install -y ./*.opam --deps-only --with-test
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@ jobs:
git config --global user.email github-actions-bot@users.noreply.github.com
- run: opam pin add . -y --no-action

- run: opam depext -y geoip
if : matrix.os != 'macos-latest'

- run: brew install geoip
if : matrix.os == 'macos-latest'

- run: opam pin https://github.com/hernoufM/digodoc-search-api.git

- run: opam depext -y digodoc digodoc_lib meta_file ez_html htmlize frontend digodoc_common
if: steps.cache-opam.outputs.cache-hit != 'true'

- run : opam install json-data-encoding json-data-encoding ezjsonm uuidm geoip js_of_ocaml-lwt calendar tls lwt_log cohttp-lwt-jsoo ppxlib

- run: opam install -y ./*.opam --deps-only --with-test
if: steps.cache-opam.outputs.cache-hit != 'true'

Expand Down
2 changes: 2 additions & 0 deletions frontend.opam
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ depends: [
"dune" {>= "2.6.0"}
"search-api" {>= "~dev"}
"js_of_ocaml" {>= "3.0"}
"ez_api" {>= "0.1.0"}
"ppx_deriving_jsoo" {>= "0.1"}
"js_of_ocaml-ppx" {>= "3.0"}
"lwt_ppx" {>= "2.0.2"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
Expand Down
288 changes: 0 additions & 288 deletions res.txt

This file was deleted.

17 changes: 0 additions & 17 deletions src/digodoc_common/main.ml

This file was deleted.

2 changes: 2 additions & 0 deletions src/frontend/package.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ gen-version = "version.ml"
[dependencies]
js_of_ocaml = ">=3.0"
search-api = ">=~dev"
ez_api = ">=0.1.0"

# package tools dependencies
[tools]
js_of_ocaml-ppx = ">=3.0"
ppx_deriving_jsoo = ">=0.1"
lwt_ppx = ">=2.0.2"

# package fields (depends on package skeleton)
[fields]
Expand Down
6 changes: 4 additions & 2 deletions test/patchtmltests.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
open Digodoc_common

let () =
let test_cases = [|
(".", "index.html");
Expand Down Expand Up @@ -30,7 +32,7 @@ let () =
title = None
}
in
let result = Htmlize.Patchtml.handle_link_omd ~is_raw:false sent in
let result = Patchtml.handle_link_omd ~is_raw:false sent in
let ok = result = expected in
if not ok then Format.printf "expected: %s but got %s@." expected.destination sent.destination;

Expand Down Expand Up @@ -63,7 +65,7 @@ let () =
title = None
}
in
let result = Htmlize.Patchtml.handle_link_omd ~is_raw:true sent in
let result = Patchtml.handle_link_omd ~is_raw:true sent in
let ok = result = expected in
if not ok then Format.printf "expected: %s but got %s@." expected.destination sent.destination;

Expand Down

0 comments on commit 05f9f8c

Please sign in to comment.