Skip to content

Commit

Permalink
travis with opam
Browse files Browse the repository at this point in the history
  • Loading branch information
affeldt-aist committed Apr 21, 2020
1 parent d791c76 commit cdd5e48
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
36 changes: 34 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
language: nix
nix: 2.0.4
language: generic
os: linux

services:
- docker

env:
global:
- NJOBS="2"
- CONTRIB="analysis"
- OPAMYES=yes
jobs:
- DOCKERIMAGE="mathcomp/mathcomp:1.11.0-coq-8.7"
- DOCKERIMAGE="mathcomp/mathcomp:1.11.0-coq-8.8"
- DOCKERIMAGE="mathcomp/mathcomp:1.11.0-coq-8.9"
- DOCKERIMAGE="mathcomp/mathcomp:1.11.0-coq-8.10"
- DOCKERIMAGE="mathcomp/mathcomp:1.11.0-coq-8.11"
- DOCKERIMAGE="mathcomp/mathcomp-dev:coq-8.7"
- DOCKERIMAGE="mathcomp/mathcomp-dev:coq-8.8"
- DOCKERIMAGE="mathcomp/mathcomp-dev:coq-8.9"
- DOCKERIMAGE="mathcomp/mathcomp-dev:coq-8.10"
- DOCKERIMAGE="mathcomp/mathcomp-dev:coq-8.11"

install:
- docker pull ${DOCKERIMAGE}
- docker tag ${DOCKERIMAGE} ci:current
- docker run --env=OPAMYES --init -id --name=CI -v ${TRAVIS_BUILD_DIR}:/home/coq/${CONTRIB} -w /home/coq/${CONTRIB} ci:current
- docker exec CI /bin/bash --login -c "cd ..; curl -LO https://github.com/math-comp/finmap/archive/1.5.0.tar.gz; tar -xvzf 1.5.0.tar.gz; cd finmap-1.5.0/; opam pin add -y -n coq-mathcomp-finmap.1.5.0 .; opam install coq-mathcomp-finmap.1.5.0; cd /home/coq/${CONTRIB}"
- docker exec CI /bin/bash --login -c "opam pin add -n coq-mathcomp-${CONTRIB} ."
- docker exec CI /bin/bash --login -c "opam install --deps-only coq-mathcomp-${CONTRIB}"

script:
- docker exec CI /bin/bash --login -c "opam install coq-mathcomp-${CONTRIB}"

6 changes: 3 additions & 3 deletions opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ install: [
[make "install"]
]
depends: [
"coq" { ((>= "8.8" & < "8.11~") | = "dev") }
"coq-mathcomp-field" {(>= "1.8.0" & <= "1.10.0")}
"coq-mathcomp-finmap" {(>= "1.2.0" & <= "1.4.0")}
"coq" { ((>= "8.7" & < "8.12~") | = "dev") }
"coq-mathcomp-field" {(>= "1.11.0" & < "1.12~")}
"coq-mathcomp-finmap" {(>= "1.5.0" & < "1.6~")}
]
synopsis: "An analysis library for mathematical components"
description: """
Expand Down

0 comments on commit cdd5e48

Please sign in to comment.