.gitlab-ci.yml 285 Bytes
Newer Older
Cool Fire's avatar
Cool Fire committed
1 2 3 4 5 6 7 8 9 10 11 12 13
---
stages:
  - syntax
  - linting
syntax:
  stage: syntax
  image: ruby:2.4
  script:
    - find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
lint_ruby:
  stage: linting
  image: ruby:2.4
  script:
Cool Fire's avatar
Cool Fire committed
14
    - gem install rubocop --no-document
Cool Fire's avatar
Cool Fire committed
15
    - rubocop -l -f s