.gitlab-ci.yml 659 Bytes
Newer Older
1 2 3 4
---
stages:
  - syntax
  - linting
Cool Fire's avatar
Cool Fire committed
5 6 7 8 9 10
syntax_ruby_2-5:
  stage: syntax
  image: ruby:2.5
  script:
    - ruby -v
    - find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
11 12
syntax_ruby_2-4:
  stage: syntax
13
  image: ruby:2.4
14 15 16 17 18
  script:
    - ruby -v
    - find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
syntax_ruby_2-3:
  stage: syntax
19
  image: ruby:2.3
20 21 22 23 24
  script:
    - ruby -v
    - find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
lint_ruby:
  stage: linting
25
  image: ruby:2.4-alpine
26
  script:
Cool Fire's avatar
Cool Fire committed
27
    - apk add --update alpine-sdk
28
    - gem install rubocop --no-document
29
    - rubocop -P -f s