--- 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: - gem install rubocop --no-document - rubocop -l -f s