Skip to content

Commit 135ce84

Browse files
authored
Merge pull request #31 from coq/deploy-pipeline
Deploy pipeline
2 parents 8130f4d + 9cc2234 commit 135ce84

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ jobs:
5858
- name: Run tests
5959
run: opam exec -- dune test
6060

61-
- name: Format code
62-
run: opam exec -- dune build --auto-promote @fmt
63-
if: runner.os == 'Linux'
61+
# - name: Format code
62+
# run: opam exec -- dune build --auto-promote @fmt
63+
# if: runner.os == 'Linux'

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "rocq-doc"]
2-
path = rocq-doc
3-
url = https://github.com/coq/doc

Makefile

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DEFAULT_GOAL := all
2+
DOC_PATH=`pwd`/rocq-doc/
23

34
.PHONY: all
45
all:
@@ -32,8 +33,18 @@ playground:
3233
install: all ## Install the packages on the system
3334
opam exec -- dune install --root .
3435

36+
.PHONY: local-doc
37+
local-doc:
38+
if [ -d rocq-doc ]; then cd rocq-doc && git pull; \
39+
else git clone --depth 1 https://github.com/coq/doc.git rocq-doc; fi
40+
41+
.PHONY: update-local-doc
42+
update-local-doc:
43+
@if [ -d rocq-doc ]; then cd rocq-doc && git pull; \
44+
else echo "No local doc copy, use \"make local-doc\" to get a local copy (~ 8 GB)"; fi
45+
3546
.PHONY: start
36-
start: all ## Run the produced executable
47+
start: all update-local-doc ## Run the produced executable
3748
opam exec -- dune exec src/rocqproverorg_web/bin/main.exe
3849

3950
.PHONY: test
@@ -51,11 +62,9 @@ doc: ## Generate odoc documentation
5162
.PHONY: fmt
5263
fmt: ## Format the codebase with ocamlformat
5364
opam exec -- dune build --root . --auto-promote @fmt
54-
55-
DOC_PATH=`pwd`/rocq-doc/
5665

5766
.PHONY: watch
58-
watch: ## Watch for the filesystem and rebuild on every change
67+
watch: update-local-doc ## Watch for the filesystem and rebuild on every change
5968
DOC_PATH=${DOC_PATH} opam exec -- dune build @run -w --force --no-buffer
6069

6170
.PHONY: utop

rocq-doc

-1
This file was deleted.

0 commit comments

Comments
 (0)