Skip to content

Commit 1f71f97

Browse files
authored
Merge pull request #86 from coq-community/coq-v8.14+ci
add meta.yml and generate boilerplate for 8.14
2 parents 3f8a02e + 4b6076e commit 1f71f97

7 files changed

Lines changed: 480 additions & 70 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file was generated from `meta.yml`, please do not edit manually.
2+
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3+
name: Docker CI
4+
5+
on:
6+
push:
7+
branches:
8+
- coq-v8.14
9+
pull_request:
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
build:
15+
# the OS must be GNU/Linux to be able to use the docker-coq-action
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
image:
20+
- 'coqorg/coq:8.14'
21+
fail-fast: false
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: coq-community/docker-coq-action@v1
25+
with:
26+
opam_file: 'coq-dpdgraph.opam'
27+
custom_image: ${{ matrix.image }}
28+
29+
# See also:
30+
# https://github.com/coq-community/docker-coq-action#readme
31+
# https://github.com/erikmd/docker-coq-github-action-demo

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,23 @@
1010
*.cmxa
1111
*.mlg.d
1212
version.ml
13+
graphdepend.ml
14+
searchdepend.ml
1315

1416
autom4te.cache
1517
configure
1618
Makefile
19+
Make_coq.conf
20+
.Make_coq.d
1721
config.log
1822
config.status
1923
*.aux
2024
*.glob
2125
*.mllib.d
2226
*.v.d
2327
*.vo
28+
*.vok
29+
*.vos
2430

2531
coqthmdep
2632
dpd2dot

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.md

Lines changed: 65 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,53 @@
1-
coq-dpdgraph
2-
============
1+
<!---
2+
This file was generated from `meta.yml`, please do not edit manually.
3+
Follow the instructions on https://github.com/coq-community/templates to regenerate.
4+
--->
5+
# coq-dpdgraph
36

4-
Build dependency graphs between Coq objects,
5-
where Coq is the famous formal proof management system (see
6-
http://coq.inria.fr/).
7+
[![Docker CI][docker-action-shield]][docker-action-link]
8+
[![Contributing][contributing-shield]][contributing-link]
9+
[![Code of Conduct][conduct-shield]][conduct-link]
10+
[![Zulip][zulip-shield]][zulip-link]
711

8-
Travis CI status on master branch: [![Build Status](https://travis-ci.org/Karmaki/coq-dpdgraph.svg?branch=master)](https://travis-ci.org/Karmaki/coq-dpdgraph)
12+
[docker-action-shield]: https://github.com/coq-community/coq-dpdgraph/workflows/Docker%20CI/badge.svg?branch=coq-v8.14
13+
[docker-action-link]: https://github.com/coq-community/coq-dpdgraph/actions?query=workflow:"Docker%20CI"
914

10-
## What's inside ?
15+
[contributing-shield]: https://img.shields.io/badge/contributions-welcome-%23f7931e.svg
16+
[contributing-link]: https://github.com/coq-community/manifesto/blob/master/CONTRIBUTING.md
1117

12-
First of all, it is a small tool (a Coq plug-in) that extracts the
18+
[conduct-shield]: https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-%23f15a24.svg
19+
[conduct-link]: https://github.com/coq-community/manifesto/blob/master/CODE_OF_CONDUCT.md
20+
21+
[zulip-shield]: https://img.shields.io/badge/chat-on%20zulip-%23c1272d.svg
22+
[zulip-link]: https://coq.zulipchat.com/#narrow/stream/237663-coq-community-devs.20.26.20users
23+
24+
25+
26+
Coq plugin that extracts the dependencies between Coq objects,
27+
and produces files with dependency information. Includes tools
28+
to visualize dependency graphs and find unused definitions.
29+
30+
## Meta
31+
32+
- Author(s):
33+
- Anne Pacalet
34+
- Yves Bertot
35+
- Olivier Pons
36+
- Coq-community maintainer(s):
37+
- Anne Pacalet ([**@Karmaki**](https://github.com/Karmaki))
38+
- Yves Bertot ([**@ybertot**](https://github.com/ybertot))
39+
- License: [GNU Lesser General Public License v2.1](LICENSE)
40+
- Compatible Coq versions: 8.14 (use the corresponding branch or release for other Coq versions)
41+
- Compatible OCaml versions: 4.05.0 or later
42+
- Additional dependencies:
43+
- autoconf (except for releases)
44+
- [OCamlgraph](https://github.com/backtracking/ocamlgraph)
45+
- Coq namespace: `dpdgraph`
46+
- Related publication(s): none
47+
48+
## What's inside?
49+
50+
First of all, it is a small tool (a Coq plugin) that extracts the
1351
dependencies between Coq objects, and produces a file (we suggest using
1452
the suffix .dpd) with this information.
1553

@@ -25,25 +63,16 @@ Hope other tools later on to do more things. Feel free to contribute!
2563
## How to get it
2664

2765
You can:
28-
- either clone it from GitHub at: https://github.com/Karmaki/coq-dpdgraph
66+
- either clone it from GitHub at: https://github.com/coq-community/coq-dpdgraph
2967
- or get the opam package named `coq-dpdgraph` from the opam-coq archive (repository "released")
30-
- or get the
31-
[latest distributed version](https://github.com/Karmaki/coq-dpdgraph/releases)
32-
### Compilation
68+
- or get the [latest distributed version](https://github.com/coq-community/coq-dpdgraph/releases)
3369

34-
#### Requirements
35-
36-
- The latest version runs with Coq 8.11
37-
- it has been tested with a version of Coq installed using opam and with
38-
Ocaml version 4.09.0
39-
- [ocamlgraph](http://ocamlgraph.lri.fr/) (for dpd2dot tool)
40-
Any version should work since only the basic feature are used.
41-
42-
#### Compile from the pre-packaged source archive or the git repository
70+
### Compilation
4371

44-
First download the archive, unpack it, and change directory to the `coq-dpdgraph` directory.
72+
First download the archive and unpack it (or clone the repository),
73+
and change directory to the `coq-dpdgraph` directory.
4574

46-
Depending on how you got hold of the archive, you may be in one of three situations:
75+
Depending on how you got hold of the directory, you may be in one of three situations:
4776

4877
1/ Makefile is present
4978

@@ -64,23 +93,21 @@ Depending on how you got hold of the archive, you may be in one of three situati
6493
$ autoconf
6594
$ configure && make && make install
6695

67-
#### lenient compilation
96+
By default, compilation will fail if there is any warning emitted by
97+
the ocaml compiler. This can be disabled by type
6898

69-
By default, compilation will fail if there is any warning emitted by
70-
the ocaml compiler. This can be disabled by type
99+
make WARN_ERR=
71100

72-
make WARN_ERR=
101+
instead of `make` in all previous commands.
73102

74-
instead of `make` in all previous commands.
103+
### Install using opam
75104

76-
#### install using opam
77-
78-
If you use opam, you can install `coq-dpdgraph` and `ocamlgraph`
105+
If you use opam, you can install `coq-dpdgraph` and `ocamlgraph` using
79106

80107
$ opam repo add coq-released https://coq.inria.fr/opam/released
81108
$ opam install coq-dpdgraph
82109

83-
#### Test
110+
### Test
84111

85112
If you install the archive by cloning the git repository, you have
86113
a sub-directory containing test files. These can be tested using the
@@ -96,13 +123,12 @@ to check if everything is ok.
96123

97124
- to have compiled the tools (see above)
98125
- a compiled Coq file.
99-
You can for instance use ``tests/Test.v`` (a modified clone of Coq ``List.v``)
100-
and compile it doing :
101-
```
126+
You can for instance use `tests/Test.v` (a modified clone of Coq `List.v`)
127+
and compile it doing :
128+
```shell
102129
$ coqc tests/Test.v
103130
```
104-
105-
131+
106132
### Generation of .dpd files
107133

108134
The available commands are :
@@ -237,7 +263,7 @@ references 0 times. You can specify max number of references allowed
237263

238264
## Development information
239265

240-
#### Generated ``.dpd`` format description
266+
### Generated ``.dpd`` format description
241267

242268
```
243269
graph : obj_list
@@ -278,10 +304,9 @@ Each tool can then pick the attributes that it is able to handle;
278304
they are not supposed to raise an error whenever there is
279305
an unknown attribute.
280306

281-
282307
## More information
283308

284309
Also see:
285310
- [CHANGES](CHANGES.md)
286311
- [distributed versions](https://anne.pacalet.fr/dev/dpdgraph/)
287-
- [coq-dpdgraph in Travis CI](https://travis-ci.org/Karmaki/coq-dpdgraph/)
312+

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# will set several variables: (see AC_SUBST at the end of this file)
1111
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1212

13-
AC_INIT(coq-dpdgraph,0.6.7)
13+
AC_INIT(coq-dpdgraph,1.0)
1414
AC_MSG_NOTICE(AC_PACKAGE_NAME version AC_PACKAGE_VERSION)
1515

1616
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

coq-dpdgraph.opam

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This file was generated from `meta.yml`, please do not edit manually.
2+
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3+
4+
opam-version: "2.0"
5+
maintainer: "palmskog@gmail.com"
6+
version: "8.14.dev"
7+
8+
homepage: "https://github.com/coq-community/coq-dpdgraph"
9+
dev-repo: "git+https://github.com/coq-community/coq-dpdgraph.git"
10+
bug-reports: "https://github.com/coq-community/coq-dpdgraph/issues"
11+
license: "LGPL-2.1-only"
12+
13+
synopsis: "Compute dependencies between Coq objects (definitions, theorems) and produce graphs"
14+
description: """
15+
Coq plugin that extracts the dependencies between Coq objects,
16+
and produces files with dependency information. Includes tools
17+
to visualize dependency graphs and find unused definitions."""
18+
19+
build: [
20+
["autoconf"] {dev}
21+
["./configure"]
22+
[make "-j%{jobs}%" "WARN_ERR="]
23+
]
24+
install: [make "install" "BINDIR=%{bin}%"]
25+
depends: [
26+
"ocaml" {>= "4.05.0"}
27+
"coq" {>= "8.14" & < "8.15~"}
28+
"conf-autoconf" {build & dev}
29+
"ocamlgraph"
30+
]
31+
32+
tags: [
33+
"category:Miscellaneous/Coq Extensions"
34+
"keyword:dependency graph"
35+
"keyword:dependency analysis"
36+
"logpath:dpdgraph"
37+
]
38+
authors: [
39+
"Anne Pacalet"
40+
"Yves Bertot"
41+
"Olivier Pons"
42+
]

0 commit comments

Comments
 (0)