-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.yml.mustache
68 lines (65 loc) · 1.94 KB
/
config.yml.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This file was generated from `meta.yml`, please do not edit manually.
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
version: 2.1
jobs:
build:
parameters:
coq:
type: string
docker:
- image: <<parameters.coq>>
resource_class: medium
environment:
OPAMJOBS: 2
OPAMVERBOSE: 1
OPAMYES: true
TERM: xterm
steps:
- checkout
{{# submodule }}
- run:
name: Pull submodules
command: git submodule update --init --recursive
{{/ submodule }}
- run:
name: Configure environment
command: echo . ~/.profile >> $BASH_ENV
- run:
name: Install dependencies
command: |
{{# ci_extra_dev }}
opam repo -a --set-default add coq-extra-dev https://coq.inria.fr/opam/extra-dev
{{/ ci_extra_dev }}
opam update
opam install --deps-only .
- run:
name: List installed packages
command: opam list
- run:
name: Build, test, and install package
command: opam install -t .
{{& circleci_after_script }}
{{# ci_test_dependants }}
- run:
name: Test dependants
command: |
PINS=$(opam list -s --pinned --columns=package | xargs | tr ' ' ,)
PACKAGES=`opam list -s --depends-on {{ opam_name }}{{^ opam_name }}coq-{{ shortname }}{{/ opam_name }} --coinstallable-with $PINS`
for PACKAGE in $PACKAGES
do DEPS_FAILED=false
opam install --deps-only $PACKAGE || DEPS_FAILED=true
[ $DEPS_FAILED == true ] || opam install -t $PACKAGE
done
{{/ ci_test_dependants }}
- run:
name: Uninstall package
command: opam uninstall .
workflows:
version: 2
test:
jobs:
{{# tested_coq_opam_versions }}
- build:
name: "{{ repo }}{{^ repo }}Coq{{/ repo }} {{ version }}"
coq: "{{ repo }}{{^ repo }}coqorg/coq{{/ repo }}:{{ version }}"
{{/ tested_coq_opam_versions }}