aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/ci/ci-iris-coq.sh
blob: 2d127ddc1b4e3515db857cb6bd6e4a78495e4b84 (plain)
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
#!/usr/bin/env bash

ci_dir="$(dirname "$0")"
source ${ci_dir}/ci-common.sh

stdpp_CI_DIR=${CI_BUILD_DIR}/coq-stdpp

Iris_CI_DIR=${CI_BUILD_DIR}/iris-coq

install_ssreflect

# Setup Iris first, as it is needed to compute the dependencies

git_checkout ${Iris_CI_BRANCH} ${Iris_CI_GITURL} ${Iris_CI_DIR}
read -a IRIS_DEP < ${Iris_CI_DIR}/opam.pins

# Setup stdpp
stdpp_CI_GITURL=${IRIS_DEP[1]}.git
stdpp_CI_COMMIT=${IRIS_DEP[2]}

git_checkout ${stdpp_CI_BRANCH} ${stdpp_CI_GITURL} ${stdpp_CI_DIR} ${stdpp_CI_COMMIT}

( cd ${stdpp_CI_DIR} && make && make install )

# Build iris now
( cd ${Iris_CI_DIR} && make )