Debian Codegraph @

dev/ci/scripts/ci-coq_lsp.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -e
4
5 ci_dir="$(dirnamescip-shell system . . dirname. "$0")"
6 . "${ci_dir}/ci-common.sh"
7
8 git_download coq_lsp
9
10 if [scip-shell system . . `[`. "$DOWNLOAD_ONLY" ]; then exit 0; fi
11
12 if [scip-shell system . . `[`. -n "${GITLAB_CI}" ]; then
13 export ROCQLIB="$PWD/_install_ci/lib/coq"
14 export ROCQRUNTIMELIB="$PWD/_install_ci/lib/rocq-runtime"
15 fi
16
17 ( cd "${CI_BUILD_DIR}/coq_lsp"
18 dune build --root . --only-packages=coq-lsp @install
19 # Tests
20 _build/install/default/bin/coq-lsp --version
21 dune runtest --root . test/serlib
22 dune runtest --root . test/compiler
23 # It was needed by coq-serapi in CI, we keep it for now
24 dune install -p coq-lsp --prefix="$CI_INSTALL_DIR"
25 )