aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/ci/ci-iris-coq.sh
blob: e97e2c19e3c66a7d912429addb2f733f8c078170 (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
28
29
30
31
32
33
34
35
#!/bin/bash

# $0 is not the safest way, but...
ci_dir="$(dirname "$0")"
source ${ci_dir}/ci-common.sh

# XXX: Refactor into install-ssreflect
git clone --depth 1 https://github.com/math-comp/math-comp.git

# coquelicot just needs mathcomp
( cd math-comp/mathcomp && \
  sed -i.bak '/ssrtest/d'     Make && \
  sed -i.bak '/odd_order/d'   Make && \
  sed -i.bak '/all\/all.v/d'  Make && \
  sed -i.bak '/character/d'   Make && \
  sed -i.bak '/real_closed/d' Make && \
  sed -i.bak '/solvable/d'    Make && \
  sed -i.bak '/field/d'       Make && \
  sed -i.bak '/fingroup/d'    Make && \
  sed -i.bak '/algebra/d'     Make && \
  make -j ${NJOBS} && make install )

# Setup ssr = This doesn't work as coq_makefile will pass -q to coqc :S :S
# echo "Add ML Path \"`pwd`/math-comp/mathcomp/\"." > ${HOME}/.coqrc
# echo "Add LoadPath \"`pwd`/math-comp/mathcomp/\" as mathcomp." >> ${HOME}/.coqrc

# Setup stdpp
git clone --depth 1 https://gitlab.mpi-sws.org/robbertkrebbers/coq-stdpp.git

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

# Setup Iris
git clone --depth 1 https://gitlab.mpi-sws.org/FP/iris-coq.git

( cd iris-coq && make -j ${NJOBS} )