Skip to content

Commit d0621d9

Browse files
authored
Merge pull request #84 from Zimmi48/update-meta-8.11
Update meta.yml to test Coq 8.11 (and wrt latest templates).
2 parents c96db93 + 72a60c3 commit d0621d9

File tree

5 files changed

+41
-32
lines changed

5 files changed

+41
-32
lines changed

.travis.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,50 @@
1-
opam: &OPAM
2-
language: minimal
3-
sudo: required
1+
os: linux
2+
dist: bionic
3+
language: shell
4+
5+
.opam: &OPAM
6+
language: shell
47
services: docker
58
install: |
69
# Prepare the COQ container
710
docker pull ${COQ_IMAGE}
8-
docker run -d -i --init --name=COQ -v ${TRAVIS_BUILD_DIR}:/home/coq/${CONTRIB_NAME} -w /home/coq/${CONTRIB_NAME} ${COQ_IMAGE}
11+
docker run -d -i --init --name=COQ -v ${TRAVIS_BUILD_DIR}:/home/coq/${PACKAGE} -w /home/coq/${PACKAGE} ${COQ_IMAGE}
912
docker exec COQ /bin/bash --login -c "
1013
# This bash script is double-quoted to interpolate Travis CI env vars:
1114
echo \"Build triggered by ${TRAVIS_EVENT_TYPE}\"
1215
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
1316
set -ex # -e = exit on failure; -x = trace for debug
1417
opam update -y
15-
opam pin add ${CONTRIB_NAME} . -y -n -k path
16-
opam install ${CONTRIB_NAME} -y -j ${NJOBS} --deps-only
18+
opam pin add ${PACKAGE} . -y -n -k path
19+
opam install ${PACKAGE} -y -j ${NJOBS} --deps-only
1720
opam config list
1821
opam repo list
1922
opam list
2023
"
2124
script:
22-
- echo -e "${ANSI_YELLOW}Building ${CONTRIB_NAME}...${ANSI_RESET}" && echo -en 'travis_fold:start:script\\r'
25+
- echo -e "${ANSI_YELLOW}Building ${PACKAGE}...${ANSI_RESET}" && echo -en 'travis_fold:start:script\\r'
2326
- |
2427
docker exec COQ /bin/bash --login -c "
2528
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
2629
set -ex
27-
sudo chown -R coq:coq /home/coq/${CONTRIB_NAME}
28-
opam install ${CONTRIB_NAME} -v -y -j ${NJOBS}
30+
sudo chown -R coq:coq /home/coq/${PACKAGE}
31+
opam install ${PACKAGE} -v -y -j ${NJOBS}
2932
"
3033
- docker stop COQ # optional
3134
- echo -en 'travis_fold:end:script\\r'
3235

33-
nix: &NIX
36+
.nix: &NIX
3437
language: nix
3538
script:
3639
- nix-build --argstr coq-version-or-url "$COQ" --extra-substituters https://coq.cachix.org --trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= coq.cachix.org-1:5QW/wwEnD+l2jvN6QRbRRsa4hBHG3QiQQ26cxu1F5tI="
3740

38-
matrix:
41+
jobs:
3942
include:
4043

4144
# Test supported versions of Coq via Nix
45+
- env:
46+
- COQ=8.11
47+
<<: *NIX
4248
- env:
4349
- COQ=8.10
4450
<<: *NIX
@@ -51,14 +57,16 @@ matrix:
5157
- env:
5258
- COQ=8.7
5359
<<: *NIX
54-
- env:
55-
- COQ=8.6
56-
<<: *NIX
5760

5861
# Test supported versions of Coq via OPAM
5962
- env:
6063
- COQ_IMAGE=coqorg/coq:dev
61-
- CONTRIB_NAME=coq-math-classes
64+
- PACKAGE=coq-math-classes.dev
65+
- NJOBS=2
66+
<<: *OPAM
67+
- env:
68+
- COQ_IMAGE=coqorg/coq:8.6
69+
- PACKAGE=coq-math-classes.dev
6270
- NJOBS=2
6371
<<: *OPAM
6472

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
[gitter-shield]: https://img.shields.io/badge/chat-on%20gitter-%23c1272d.svg
1919
[gitter-link]: https://gitter.im/coq-community/Lobby
2020

21+
2122
[doi-shield]: https://zenodo.org/badge/DOI/10.1017/S0960129511000119.svg
2223
[doi-link]: https://doi.org/10.1017/S0960129511000119
2324

@@ -36,9 +37,6 @@ algebraic manipulation (e.g. rewriting) and idiomatic use of
3637
notations.
3738

3839

39-
More details about the project can be found in the paper
40-
[Type Classes for Mathematics in Type Theory](https://arxiv.org/abs/1102.1323).
41-
4240
## Meta
4341

4442
- Author(s):
@@ -49,8 +47,11 @@ More details about the project can be found in the paper
4947
- Bas Spitters ([**@spitters**](https://github.com/spitters))
5048
- License: [Public Domain](LICENSE)
5149
- Compatible Coq versions: Coq 8.6 or later (use releases for other Coq versions)
52-
- Additional Coq dependencies:
50+
- Additional dependencies:
5351
- [BigNums](https://github.com/coq/bignums)
52+
- Coq namespace: `MathClasses`
53+
- Related publication(s):
54+
- [Type Classes for Mathematics in Type Theory](https://arxiv.org/abs/1102.1323) doi:[10.1017/S0960129511000119](https://doi.org/10.1017/S0960129511000119)
5455

5556
## Building and installation instructions
5657

@@ -65,16 +66,13 @@ opam install coq-math-classes
6566
To instead build and install manually, do:
6667

6768
``` shell
68-
git clone https://github.com/coq-community/math-classes
69+
git clone https://github.com/coq-community/math-classes.git
6970
cd math-classes
7071
./configure.sh
7172
make # or make -j <number-of-cores-on-your-machine>
7273
make install
7374
```
7475

75-
After installation, the included modules are available under
76-
the `MathClasses` namespace.
77-
7876

7977
## Directory structure
8078

coq-math-classes.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
opam-version: "2.0"
22
maintainer: "b.a.w.spitters@gmail.com"
3+
version: "dev"
34

45
homepage: "https://github.com/coq-community/math-classes"
56
dev-repo: "git+https://github.com/coq-community/math-classes.git"
@@ -29,8 +30,7 @@ build: [
2930
]
3031
install: [make "install"]
3132
depends: [
32-
"ocaml"
33-
"coq" {(>= "8.6" & < "8.11~") | (= "dev")}
33+
"coq" {(>= "8.6" & < "8.12~") | (= "dev")}
3434
"coq-bignums"
3535
]
3636

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ pkgs.stdenv.mkDerivation {
2222

2323
src = if shell then null else ./.;
2424

25-
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
25+
installFlags = "COQMF_COQLIB=$(out)/lib/coq/${coq.coq-version}/";
2626
}

meta.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ fullname: Math Classes
33
shortname: math-classes
44
organization: coq-community
55
community: true
6+
travis: true
7+
doi: 10.1017/S0960129511000119
68

79
synopsis: >-
810
A library of abstract interfaces for mathematical structures in Coq.
@@ -22,10 +24,10 @@ description: |
2224
algebraic manipulation (e.g. rewriting) and idiomatic use of
2325
notations.
2426
25-
paper:
26-
doi: 10.1017/S0960129511000119
27-
url: https://arxiv.org/abs/1102.1323
28-
title: Type Classes for Mathematics in Type Theory
27+
publications:
28+
- pub_doi: 10.1017/S0960129511000119
29+
pub_url: https://arxiv.org/abs/1102.1323
30+
pub_title: Type Classes for Mathematics in Type Theory
2931

3032
authors:
3133
- name: Eelis van der Weegen
@@ -47,17 +49,18 @@ license:
4749

4850
supported_coq_versions:
4951
text: Coq 8.6 or later (use releases for other Coq versions)
50-
opam: '{(>= "8.6" & < "8.11~") | (= "dev")}'
52+
opam: '{(>= "8.6" & < "8.12~") | (= "dev")}'
5153

5254
tested_coq_nix_versions:
55+
- version_or_url: "8.11"
5356
- version_or_url: "8.10"
5457
- version_or_url: "8.9"
5558
- version_or_url: "8.8"
5659
- version_or_url: "8.7"
57-
- version_or_url: "8.6"
5860

5961
tested_coq_opam_versions:
6062
- version: dev
63+
- version: "8.6"
6164

6265
dependencies:
6366
- opam:

0 commit comments

Comments
 (0)