-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from math-comp/prepare.1.1
Prepare next release
- Loading branch information
Showing
11 changed files
with
171 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,48 @@ | ||
sudo: required | ||
dist: trusty | ||
language: coq | ||
cache: | ||
apt: true | ||
branches: | ||
only: | ||
- master | ||
services: | ||
- docker | ||
before_install: | ||
- docker pull strubpy/coq:ssr-dev | ||
env: | ||
global: | ||
- NJOBS=2 | ||
# system is == 4.02.3 | ||
- COMPILER="system" | ||
# Main test targets | ||
matrix: | ||
- COQ="8.6.1" MATHCOMP="1.6.1" | ||
- COQ="8.6.1" MATHCOMP="1.7.0" | ||
- COQ="8.7.2" MATHCOMP="1.7.0" | ||
- COQ="8.8.1" MATHCOMP="1.7.0" | ||
- COQ="8.8.1" MATHCOMP="dev" | ||
- COQ="dev" MATHCOMP="1.7.0" | ||
- COQ="dev" MATHCOMP="dev" | ||
matrix: | ||
allow_failures: | ||
- env: COQ="8.6.1" MATHCOMP="1.6.1" | ||
fast_finish: true | ||
install: | ||
- sudo add-apt-repository --yes ppa:avsm/ppa | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq -y opam | ||
- opam init -y | ||
- eval $(opam config env) | ||
- opam config var root | ||
- opam remote add coq-extra-dev https://coq.inria.fr/opam/extra-dev | ||
- opam remote add coq-core-dev https://coq.inria.fr/opam/core-dev | ||
- opam remote add coq-released https://coq.inria.fr/opam/released | ||
- opam pin add -nvy coq --kind version ${COQ} | ||
- opam pin add -nvy coq-mathcomp-ssreflect --kind version ${MATHCOMP} | ||
- opam pin add -nvy . | ||
- | | ||
# Building coq | ||
travis_wait opam install -j ${NJOBS} -y ocamlfind camlp5 coq | ||
- | | ||
# Building other deps | ||
travis_wait opam install -j ${NJOBS} -y --deps-only coq-mathcomp-multinomials | ||
- opam list | ||
script: | ||
- >- | ||
docker run -v $PWD:/home/ci/multinomials strubpy/coq:ssr-dev | ||
sh -c 'cd multinomials && opam config exec -- make' | ||
- opam install -j ${NJOBS} -y -vvv coq-mathcomp-multinomials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,103 @@ | ||
# -*- Makefile -*- | ||
|
||
# -------------------------------------------------------------------- | ||
###################################################################### | ||
# USAGE: # | ||
# The rules this-config::, this-build::, this-distclean::, # | ||
# pre-makefile::, this-clean:: and __always__:: may be extended # | ||
# Additionally, the following variables may be customized: # | ||
SUBDIRS?= | ||
COQBIN?=$(dir $(shell which coqtop)) | ||
COQMAKEFILE?=$(COQBIN)coq_makefile | ||
COQDEP?=$(COQBIN)coqdep | ||
COQPROJECT?=_CoqProject | ||
COQMAKEOPTIONS?= | ||
COQMAKEFILEOPTIONS?= | ||
V?= | ||
VERBOSE?=V | ||
###################################################################### | ||
|
||
# local context: ----------------------------------------------------- | ||
.PHONY: all config build clean distclean __always__ | ||
.SUFFIXES: | ||
|
||
TOP := $(dir $(lastword $(MAKEFILE_LIST))) | ||
COQMAKE := $(MAKE) -f Makefile.coq | ||
COQC ?= $(COQBIN)coqc | ||
H:= $(if $(VERBOSE),,@) # not used yet | ||
TOP = $(dir $(lastword $(MAKEFILE_LIST))) | ||
COQMAKE = $(MAKE) -f Makefile.coq $(COQMAKEOPTIONS) | ||
BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 | grep -E '(trunk|master)' \ | ||
| wc -l | sed 's/ *//g') | ||
|
||
# -------------------------------------------------------------------- | ||
# coq version: | ||
ifneq "$(BRANCH_coq)" "0" | ||
COQV:=dev | ||
COQVV:=dev | ||
COQVVV:=dev | ||
else | ||
COQV:= $(shell $(COQBIN)coqtop -v | head -1 \ | ||
| sed 's/.*version \([0-9]\)[^ ]* .*/\1/') | ||
COQVV:= $(shell $(COQBIN)coqtop -v | head -1 \ | ||
| sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/\1/') | ||
COQVVV:= $(shell $(COQBIN)coqtop -v | head -1 \ | ||
| sed 's/.*version \([0-9]\.[0-9]\.[0-9]\)[^ ]* .*/\1/') | ||
endif | ||
|
||
# all: --------------------------------------------------------------- | ||
all: config build | ||
|
||
# -------------------------------------------------------------------- | ||
Makefile.coq: Makefile | ||
coq_makefile $(INCFLAGS) $(COQFILES) -o Makefile.coq | ||
-+$(COQMAKE) depend | ||
# Makefile.coq: ------------------------------------------------------ | ||
.PHONY: pre-makefile | ||
|
||
Makefile.coq: pre-makefile $(COQPROJECT) Makefile | ||
$(COQMAKEFILE) $(COQMAKEFILEOPTIONS) -f $(COQPROJECT) -o Makefile.coq | ||
|
||
# -------------------------------------------------------------------- | ||
config: sub-config this-config Makefile.coq | ||
# Global config, build, clean and distclean -------------------------- | ||
config: sub-config this-config | ||
|
||
build: sub-build this-build | ||
|
||
clean: sub-clean this-clean | ||
|
||
distclean: sub-distclean this-distclean | ||
|
||
# -------------------------------------------------------------------- | ||
# Local config, build, clean and distclean --------------------------- | ||
.PHONY: this-config this-build this-distclean this-clean | ||
|
||
this-build:: | ||
this-config:: __always__ | ||
|
||
this-build:: this-config Makefile.coq | ||
+$(COQMAKE) | ||
|
||
this-distclean:: this-clean | ||
rm -f Makefile.coq | ||
rm -f Makefile.coq Makefile.coq.conf Makefile.coq | ||
|
||
this-clean:: __always__ | ||
@if [ -f Makefile.coq ]; then $(COQMAKE) cleanall; fi | ||
|
||
# Install target ----------------------------------------------------- | ||
.PHONY: install | ||
|
||
install: __always__ Makefile.coq | ||
$(COQMAKE) install | ||
# counting lines of Coq code ----------------------------------------- | ||
.PHONY: count | ||
|
||
COQFILES = $(shell grep '.v$$' $(COQPROJECT)) | ||
|
||
this-clean:: | ||
@if [ -f Makefile.coq ]; then $(COQMAKE) clean; fi | ||
count: | ||
@coqwc $(COQFILES) | tail -1 | \ | ||
awk '{printf ("%d (spec=%d+proof=%d)\n", $$1+$$2, $$1, $$2)}' | ||
# Additionally cleaning backup (*~) files ---------------------------- | ||
this-distclean:: | ||
rm -f $(shell find . -name '*~') | ||
|
||
# -------------------------------------------------------------------- | ||
# Make in SUBDIRS ---------------------------------------------------- | ||
ifdef SUBDIRS | ||
sub-%: __always__ | ||
@set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $(@:sub-%=%); done | ||
@set -e; for d in $(SUBDIRS); do +$(MAKE) -C $$d $(@:sub-%=%); done | ||
else | ||
sub-%: __always__ | ||
@true | ||
endif | ||
|
||
# -------------------------------------------------------------------- | ||
%.vo: __always__ | ||
# Make of individual .vo --------------------------------------------- | ||
%.vo: __always__ Makefile.coq | ||
+$(COQMAKE) $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
src/xfinmap.v | ||
src/ssrcomplements.v | ||
src/monalg.v | ||
src/freeg.v | ||
src/mpoly.v | ||
|
||
-R src SsrMultinomials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A Multivariate polynomial Library for the Mathematical Components Library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
opam-version: "1.2" | ||
name: "coq-mathcomp-multinomials" | ||
maintainer: "[email protected]" | ||
homepage: "https://github.com/math-comp/multinomials-ssr" | ||
bug-reports: "https://github.com/math-comp/multinomials-ssr/issues" | ||
dev-repo: "git+https://github.com/math-comp/multinomials.git" | ||
license: "CeCILL-B" | ||
authors: ["Pierre-Yves Strub"] | ||
build: [ | ||
[make "INSTMODE=global" "config"] | ||
[make "-j%{jobs}%"] | ||
] | ||
install: [ | ||
[make "install"] | ||
] | ||
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/SsrMultinomials"] | ||
depends: [ | ||
"coq" {(>= "8.5" | = "dev")} | ||
"coq-mathcomp-ssreflect" { (>= "1.6" | = "dev") } | ||
"coq-mathcomp-algebra" { (>= "1.6" | = "dev") } | ||
"coq-mathcomp-bigenough" {>= "1.0.0" & < "1.1.0~"} | ||
"coq-mathcomp-finmap" {>= "1.0.0" & < "1.1.0~"} | ||
] | ||
tags: [ | ||
"keyword:multinomials" | ||
"keyword:monoid algebra" | ||
"category:Math/Algebra/Multinomials" | ||
"category:Math/Algebra/Monoid algebra" | ||
"date:2016" | ||
"logpath:SsrMultinomials" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.