Commit 6914efd6 authored by Albin PETIT's avatar Albin PETIT Committed by Samir Noir
Browse files

[gitlab-ci] add rubocop

parent c783d4f5
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# in gitlab, go to Settings -> General -> Permissions -> Pipeline # in gitlab, go to Settings -> General -> Permissions -> Pipeline
stages: stages:
- lint
- test - test
- deb - deb
- deploy - deploy
...@@ -14,6 +15,18 @@ include: ...@@ -14,6 +15,18 @@ include:
ref: master ref: master
file: '/sonarqube.yml' file: '/sonarqube.yml'
rubocop:
image: debian:buster
stage: lint
tags:
- grid5000-docker
script:
- apt-get update && apt-get -y --no-install-recommends install rubygems build-essential ruby-dev
- gem install rubocop rubocop-rails
- rubocop -l --require rubocop-rails
except:
- tags
test-for-buster: &test-for-buster test-for-buster: &test-for-buster
image: debian:buster image: debian:buster
stage: test stage: test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment