aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/ci/ci-iris-coq.sh
blob: dcb46ed2abe03eb6f51a38b154e8e67a001683ac (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
27
#!/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]}
stdpp_CI_DEPTH="1000"

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

( cd ${stdpp_CI_DIR} && make -j ${NJOBS} && make install )

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