File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -247,3 +247,43 @@ vscode-extension:windows:
247247integration-testsuite:windows :
248248 variables :
249249 MOCHA_TIMEOUT : " 30000"
250+
251+ lsif-ada :
252+ rules :
253+ # It is not useful to generate LSIF data on merge requests since GitLab
254+ # does not provide navigation there. We only need it on the main branch.
255+ - if : $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
256+ needs : []
257+ allow_failure : true
258+ services :
259+ - image:pe-base
260+ - mem:4
261+ script :
262+ - generic_anod_ci
263+ - . /tmp/ci_env.sh
264+
265+ # Install lsif-ada
266+ - anod install lsif-ada --latest
267+ - eval $(anod printenv lsif-ada)
268+
269+ # Set up the build env for als
270+ - anod build als --deps-only
271+ - eval $(anod printenv --build-env als)
272+
273+ # Add gnatdoc and spawn which are not set up by the above since they are
274+ # used in source form in Anod
275+ - |
276+ for dep in gnatdoc spawn; do
277+ git -C subprojects clone [email protected] :eng/ide/$dep.git 278+ GPR_PROJECT_PATH=$PWD/subprojects/$dep/gnat:$GPR_PROJECT_PATH
279+ done
280+ - export GPR_PROJECT_PATH
281+ # Run lsif-ada!
282+ - lsif-ada gnat/lsp_server.gpr >lsif.lsif
283+
284+ artifacts :
285+ reports :
286+ lsif : lsif.lsif
287+ # Also archive as a plain file for debugging purposes
288+ paths :
289+ - lsif.lsif
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ with "lsp_common";
1818
1919project LSP_Server is
2020
21+ package LSIF is
22+ for Excluded_Project_Files use
23+ ("gpr2.gpr",
24+ "libadalang.gpr",
25+ "lal_tools.gpr",
26+ "lal_refactor.gpr",
27+ "ada_libfswatch.gpr",
28+ "libgnatdoc.gpr",
29+ "spawn.gpr",
30+ "gnatformat.gpr");
31+ end LSIF;
32+
2133 VERSION := external ("VERSION", "latest");
2234
2335 BUILD_DATE := external ("BUILD_DATE", "unknown");
You can’t perform that action at this time.
0 commit comments