Skip to content

robotframework-tidy as a gitlab pipeline check #721

Answered by bhirsz
piyushasaran12 asked this question in Q&A
Discussion options

You must be logged in to vote

If you didn't use any extra config, you also don't need anything extra besides --check in the pipeline.

First you need to ensure you have robotidy installed in Gitlab runner. That depends on your work environment, but either add it to docker that is build and used for your runner or simply install it in the pipeline directly. I don't know your setup, but for example:

stages:
  - gitlab used those stages, you can add your own stage here
  - Code Quality
  - E2E Tests (and other stages you already have)

code_quality:
  stage: Code Quality
  image:
    name: ""docker image used to run your linters etc, or whatever you use in your company CI"
  script:
    - pip install robotframework-tidy  …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@piyushasaran12
Comment options

@bhirsz
Comment options

Answer selected by piyushasaran12
@piyushasaran12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants