Skip to content

Commit 4a49a35

Browse files
authored
Merge pull request #63 from math-comp/ci-coq-maste
ci for coq master
2 parents 129f0a3 + 5291c38 commit 4a49a35

File tree

4 files changed

+47
-25
lines changed

4 files changed

+47
-25
lines changed

.travis.docker-install.sh

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

.travis.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ branches:
44
only:
55
- master
66

7+
env:
8+
global:
9+
- CONTRIB_NAME=hb
10+
- ELPI_810=coq-elpi.1.3.0
11+
- ELPI_811=coq-elpi.1.3.1
12+
- ELPI_DEV=https://github.com/LPCIC/coq-elpi.git#coq-master
13+
714
jobs:
815
include:
916
- language: nix
@@ -23,13 +30,11 @@ jobs:
2330
services:
2431
- docker
2532
env:
26-
- NJOBS="2"
27-
- CONTRIB_NAME="hb"
28-
- COQ="coqorg/coq:8.10" ELPI="coq-elpi.1.3.0" CMD="make && make install"
33+
- COQ=8.10 ELPI="install ${ELPI_810}" CMD="make && make install"
2934
install:
30-
- ./.travis.docker-install.sh
35+
- ./.travis/docker-install.sh
3136
script:
32-
- ./.travis.docker-test.sh
37+
- ./.travis/docker-test.sh
3338
after_script:
3439
- docker stop COQ
3540

@@ -38,13 +43,11 @@ jobs:
3843
services:
3944
- docker
4045
env:
41-
- NJOBS="2"
42-
- CONTRIB_NAME="hb"
43-
- COQ="coqorg/coq:8.11" ELPI="coq-elpi.1.3.1" CMD="make && make install"
46+
- COQ=8.11 ELPI="install ${ELPI_811}" CMD="make && make install"
4447
install:
45-
- ./.travis.docker-install.sh
48+
- ./.travis/docker-install.sh
4649
script:
47-
- ./.travis.docker-test.sh
50+
- ./.travis/docker-test.sh
4851
after_script:
4952
- docker stop COQ
5053

@@ -53,12 +56,24 @@ jobs:
5356
services:
5457
- docker
5558
env:
56-
- NJOBS="2"
57-
- CONTRIB_NAME="hb"
58-
- COQ="coqorg/coq:8.11" ELPI="coq-elpi.1.3.1" CMD="opam pin add coq-hierarchy-builder . -y -v"
59+
- COQ=8.11 ELPI="install ${ELPI_811}" CMD="opam pin add coq-hierarchy-builder ."
60+
install:
61+
- ./.travis/docker-install.sh
62+
script:
63+
- ./.travis/docker-test.sh
64+
after_script:
65+
- docker stop COQ
66+
67+
- if: branch = coq-master
68+
dist: bionic
69+
language: minimal
70+
services:
71+
- docker
72+
env:
73+
- COQ=dev ELPI="pin add coq-elpi ${ELPI_DEV}" CMD="opam pin add coq-hierarchy-builder ."
5974
install:
60-
- ./.travis.docker-install.sh
75+
- ./.travis/docker-install.sh
6176
script:
62-
- ./.travis.docker-test.sh
77+
- ./.travis/docker-test.sh
6378
after_script:
6479
- docker stop COQ

.travis/docker-install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
docker pull coqorg/coq:${COQ}
4+
docker run -d -i --init --name=COQ -v ${TRAVIS_BUILD_DIR}:/home/coq/${CONTRIB_NAME} -w /home/coq/${CONTRIB_NAME} coqorg/coq:${COQ}
5+
docker exec COQ /bin/bash --login -c "
6+
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '; set -ex
7+
export OPAMYES=true
8+
export OPAMJOBS=2
9+
export OPAMVERBOSE=true
10+
opam update
11+
opam config list; opam repo list
12+
opam ${ELPI}
13+
opam list
14+
" install

.travis.docker-test.sh renamed to .travis/docker-test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ echo -e "${ANSI_YELLOW}Building ${CONTRIB_NAME}...${ANSI_RESET}" && echo -en 'tr
44

55
docker exec COQ /bin/bash --login -c "
66
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '; set -ex
7+
export OPAMYES=true
8+
export OPAMJOBS=2
9+
export OPAMVERBOSE=true
710
sudo chown -R coq:coq /home/coq/${CONTRIB_NAME}
811
( ${CMD} )
912
" script

0 commit comments

Comments
 (0)