Léo Germond 5cbbdeb308 Merge branch 'germond-main-patch-eba8' into 'main'
Use git information to know which host/instance and project to connect to

See merge request eng/codepeer/gitlab-workflow!38
2024-10-28 11:27:18 +00:00
2023-10-17 15:38:36 +02:00
2024-09-26 12:01:16 +02:00
2023-04-24 10:38:50 +02:00
2024-10-23 14:19:22 +00:00

GNAT SAS Gitlab workflow

This repository is both an example and set of tools to use gnatsas analysis with Gitlab

  • Performs GNAT SAS analysis of each merge request
  • Provides CodeQuality metrics directly on Gitlab
  • Allow for manual review using GNAT Studio

Setup

  • Install the python prerequisites
$ pip install -r requirements.txt
  • Make sure that GNAT Studio and GNAT SAS are in PATH
  • Set GITLAB_TOKEN to the value of a private access token

Workflow

Create a branch

  • Create the branch you want to work on
  • Push your changes
  • Wait for the CI analysis to run
  • You can have a look at the CodeQuality results directly on GitLab
  • Download the result with python3 review.py init
  • This will show all the unreviewed messages

Perform manual review using GNAT Studio

  • Start GNAT Studio with the review tool: python3 review.py edit.
  • This will place you in the GNAT SAS report view.
  • Perform the reviews you want
  • Close GNAT Studio
  • The gnatsas.sar review file (in tictactoe/gnatsas/gnatsas.outputs/gnatsas.sar) is updated
  • Commit, merge if needed, and push the file
  • The new review will be available in subsequent CI analysis
Description
No description provided
Readme 111 KiB
Languages
Ada 63.3%
Python 32.1%
Dockerfile 4.6%