Skip to content

Commit 48ac747

Browse files
authored
Merge pull request #73 from Zimmi48/update-meta
Update with latest version of templates.
2 parents 4d19c6b + ce45d0f commit 48ac747

File tree

5 files changed

+84
-69
lines changed

5 files changed

+84
-69
lines changed

.travis.yml

Lines changed: 55 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,64 @@
1-
language: nix
1+
opam: &OPAM
2+
language: minimal
3+
sudo: required
4+
services: docker
5+
install: |
6+
# Prepare the COQ container
7+
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}
9+
docker exec COQ /bin/bash --login -c "
10+
# This bash script is double-quoted to interpolate Travis CI env vars:
11+
echo \"Build triggered by ${TRAVIS_EVENT_TYPE}\"
12+
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
13+
set -ex # -e = exit on failure; -x = trace for debug
14+
opam update -y
15+
opam pin add ${CONTRIB_NAME} . -y -n -k path
16+
opam install ${CONTRIB_NAME} -y -j ${NJOBS} --deps-only
17+
opam config list
18+
opam repo list
19+
opam list
20+
"
21+
script:
22+
- echo -e "${ANSI_YELLOW}Building ${CONTRIB_NAME}...${ANSI_RESET}" && echo -en 'travis_fold:start:script\\r'
23+
- |
24+
docker exec COQ /bin/bash --login -c "
25+
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
26+
set -ex
27+
sudo chown -R coq:coq /home/coq/${CONTRIB_NAME}
28+
opam install ${CONTRIB_NAME} -v -y -j ${NJOBS}
29+
"
30+
- docker stop COQ # optional
31+
- echo -en 'travis_fold:end:script\\r'
232

3-
script:
4-
- nix-build --argstr coq-version-or-url "$COQ" --argstr bignums-url "$BIGNUMS" --extra-substituters https://coq.cachix.org --trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= coq.cachix.org-1:5QW/wwEnD+l2jvN6QRbRRsa4hBHG3QiQQ26cxu1F5tI="
33+
nix: &NIX
34+
language: nix
35+
script:
36+
- 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="
537

638
matrix:
739
include:
840

9-
# Test supported versions of Coq
41+
# Test supported versions of Coq via Nix
1042
- env:
11-
COQ=https://github.com/coq/coq-on-cachix/tarball/master
12-
BIGNUMS=https://github.com/coq/bignums/tarball/master
13-
- env: COQ=8.9
14-
- env: COQ=8.8
15-
- env: COQ=8.7
16-
- env: COQ=8.6
43+
- COQ=8.10
44+
<<: *NIX
45+
- env:
46+
- COQ=8.9
47+
<<: *NIX
48+
- env:
49+
- COQ=8.8
50+
<<: *NIX
51+
- env:
52+
- COQ=8.7
53+
<<: *NIX
54+
- env:
55+
- COQ=8.6
56+
<<: *NIX
1757

18-
# Test opam package
19-
- language: minimal
20-
sudo: required
21-
services: docker
22-
env:
58+
# Test supported versions of Coq via OPAM
59+
- env:
2360
- COQ_IMAGE=coqorg/coq:dev
24-
- CONTRIB_NAME=math-classes
61+
- CONTRIB_NAME=coq-math-classes
2562
- NJOBS=2
26-
install: |
27-
# Prepare the COQ container
28-
docker pull ${COQ_IMAGE}
29-
docker run -d -i --init --name=COQ -v ${TRAVIS_BUILD_DIR}:/home/coq/${CONTRIB_NAME} -w /home/coq/${CONTRIB_NAME} ${COQ_IMAGE}
30-
docker exec COQ /bin/bash --login -c "
31-
# This bash script is double-quoted to interpolate Travis CI env vars:
32-
echo \"Build triggered by ${TRAVIS_EVENT_TYPE}\"
33-
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
34-
set -ex # -e = exit on failure; -x = trace for debug
35-
opam update -y
36-
opam install -y -j ${NJOBS} --deps-only .
37-
opam config list
38-
opam repo list
39-
opam list
40-
"
41-
script:
42-
- echo -e "${ANSI_YELLOW}Building ${CONTRIB_NAME}...${ANSI_RESET}" && echo -en 'travis_fold:start:script\\r'
43-
- |
44-
docker exec COQ /bin/bash --login -c "
45-
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
46-
set -ex
47-
sudo chown -R coq:coq /home/coq/${CONTRIB_NAME}
48-
opam install -y -j ${NJOBS} .
49-
"
50-
- docker stop COQ # optional
51-
- echo -en 'travis_fold:end:script\\r'
63+
<<: *OPAM
64+

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
[![Gitter][gitter-shield]][gitter-link]
77
[![DOI][doi-shield]][doi-link]
88

9-
[doi-shield]: https://zenodo.org/badge/DOI/10.1017/S0960129511000119.svg
10-
[doi-link]: https://doi.org/10.1017/S0960129511000119
11-
129
[travis-shield]: https://travis-ci.com/coq-community/math-classes.svg?branch=master
1310
[travis-link]: https://travis-ci.com/coq-community/math-classes/builds
1411

@@ -21,6 +18,9 @@
2118
[gitter-shield]: https://img.shields.io/badge/chat-on%20gitter-%23c1272d.svg
2219
[gitter-link]: https://gitter.im/coq-community/Lobby
2320

21+
[doi-shield]: https://zenodo.org/badge/DOI/10.1017/S0960129511000119.svg
22+
[doi-link]: https://doi.org/10.1017/S0960129511000119
23+
2424
A library of abstract interfaces for mathematical structures in Coq.
2525

2626

@@ -33,18 +33,17 @@ More details about the project can be found in the paper
3333
- Eelis van der Weegen (initial)
3434
- Bas Spitters (initial)
3535
- Robbert Krebbers (initial)
36-
- Maintainer(s):
36+
- Coq-community maintainer(s):
3737
- Bas Spitters ([**@spitters**](https://github.com/spitters))
3838
- License: [Public Domain](LICENSE)
3939
- Compatible Coq versions: Coq 8.6 or later (use releases for other Coq versions)
40-
- Additional dependencies:
40+
- Additional Coq dependencies:
4141
- [BigNums](https://github.com/coq/bignums)
4242

43-
4443
## Building and installation instructions
4544

46-
The easiest way to install the latest released version is via
47-
[OPAM](https://opam.ocaml.org/doc/Install.html):
45+
The easiest way to install the latest released version of Math Classes
46+
is via [OPAM](https://opam.ocaml.org/doc/Install.html):
4847

4948
```shell
5049
opam repo add coq-released https://coq.inria.fr/opam/released
@@ -64,6 +63,7 @@ make install
6463
After installation, the included modules are available under
6564
the `MathClasses` namespace.
6665

66+
6767
## Directory structure
6868

6969
### categories/

default.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs ? (import <nixpkgs> {}), coq-version-or-url, bignums-url ? "", shell ? false }:
1+
{ pkgs ? (import <nixpkgs> {}), coq-version-or-url, shell ? false }:
22

33
let
44
coq-version-parts = builtins.match "([0-9]+).([0-9]+)" coq-version-or-url;
@@ -7,11 +7,6 @@ let
77
pkgs.mkCoqPackages (import (fetchTarball coq-version-or-url) {})
88
else
99
pkgs."coqPackages_${builtins.concatStringsSep "_" coq-version-parts}";
10-
bignums =
11-
if bignums-url == "" then coqPackages.bignums else
12-
coqPackages.bignums.overrideAttrs (o: {
13-
src = fetchTarball https://github.com/coq/bignums/archive/master.tar.gz;
14-
});
1510
in
1611

1712
with coqPackages;

opam renamed to math-classes.opam

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
22
maintainer: "[email protected]"
33

44
homepage: "https://github.com/coq-community/math-classes"
5-
dev-repo: "https://github.com/coq-community/math-classes.git"
5+
dev-repo: "git+https://github.com/coq-community/math-classes.git"
66
bug-reports: "https://github.com/coq-community/math-classes/issues"
77
license: "Public Domain"
88

9+
synopsis: ""
10+
description: """
11+
A library of abstract interfaces for mathematical structures in Coq.
12+
"""
13+
914
build: [
1015
[ "./configure.sh" ]
1116
[ make "-j%{jobs}%" ]
1217
]
1318
install: [make "install"]
14-
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/MathClasses"]
1519
depends: [
16-
"coq" {(>= "8.6" & < "8.10~") | (= "dev")}
20+
"ocaml"
21+
"coq" {(>= "8.6" & < "8.11~") | (= "dev")}
1722
"coq-bignums"
1823
]
1924

meta.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
fullname: Math Classes
33
shortname: math-classes
44
organization: coq-community
5+
community: true
56

67
description: |
78
A library of abstract interfaces for mathematical structures in Coq.
@@ -27,20 +28,21 @@ opam-file-maintainer: [email protected]
2728

2829
license:
2930
fullname: Public Domain
30-
shortname: Public Domain
31+
identifier: Public Domain
3132

3233
supported_coq_versions:
3334
text: Coq 8.6 or later (use releases for other Coq versions)
34-
opam: '{(>= "8.6" & < "8.10~") | (= "dev")}'
35+
opam: '{(>= "8.6" & < "8.11~") | (= "dev")}'
3536

36-
tested_coq_versions:
37-
- version_or_url: https://github.com/coq/coq-on-cachix/tarball/master
38-
- version_or_url: 8.9
39-
- version_or_url: 8.8
40-
- version_or_url: 8.7
41-
- version_or_url: 8.6
37+
tested_coq_nix_versions:
38+
- version_or_url: "8.10"
39+
- version_or_url: "8.9"
40+
- version_or_url: "8.8"
41+
- version_or_url: "8.7"
42+
- version_or_url: "8.6"
4243

43-
tested_coq_opam_version: dev
44+
tested_coq_opam_versions:
45+
- version: dev
4446

4547
dependencies:
4648
- opam:

0 commit comments

Comments
 (0)