From f06fdfc4b36a2ad05e22609094790646043f3fe8 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 22 Jun 2020 15:17:35 -0600 Subject: [PATCH] Add code navigation Signed-off-by: Taylor Smock --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 006e136..9728797 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,6 +87,26 @@ assemble with java 15: - build/ allow_failure: true +code_navigation: + stage: build + image: maven:3-openjdk-8 + script: + - cat /etc/os-release + - apt update && apt install -y git + - git clone https://github.com/sourcegraph/lsif-java + - cd lsif-java + - ./gradlew installDist + - cd .. + - ./gradlew generatePomFileForJosmPluginPublication + - cp ./build/publications/josmPlugin/pom-default.xml ./pom.xml + - $(pwd)/lsif-java/build/install/lsifjava/bin/lsifjava -projectRoot . -out dump.lsif -debug + artifacts: + reports: + lsif: dump.lsif + rules: + - if: '$CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' + when: always + allow_failure: true ############## # Test stage #