| 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 vsrocq |
| 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/vsrocq/language-server" |
| 18 | makescip-shell system . . make. dune-files |
| 19 | dune build --root . --only-packages=vsrocq-language-server @install |
| 20 | dune runtest --root . |
| 21 | dune install --root . vsrocq-language-server --prefix="$CI_INSTALL_DIR" |
| 22 | ) |