Commit fc597734 authored by Cool Fire's avatar Cool Fire

Update CI jobs for new ruby version

parent 2e6d3ca4
Pipeline #1214 passed with stages
in 5 minutes and 33 seconds
......@@ -4,15 +4,15 @@ stages:
- linting
- testing
- deploy
syntax_ruby_2-4:
syntax_ruby_2-6:
stage: syntax
image: ruby:2.4-alpine
image: ruby:2.6-alpine
script:
- ruby -v
- find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
syntax_erb_2-4:
syntax_erb_2-6:
stage: syntax
image: ruby:2.4-alpine
image: ruby:2.6-alpine
script:
- ruby -v
- find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
......@@ -30,20 +30,20 @@ syntax_erb_2-3:
- find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
lint_ruby:
stage: linting
image: ruby:2.4-alpine
image: ruby:2.6-alpine
script:
- apk add --update alpine-sdk
- gem install rubocop --no-ri --no-rdoc
- gem install --no-document rubocop
- rubocop -l -f s
lint_yaml:
stage: linting
image: ruby:2.4-alpine
image: ruby:2.6-alpine
script:
- gem install yamllint --no-ri --no-rdoc
- gem install --no-document yamllint
- yamllint content/*.yaml
rack_test_2-4:
rack_test_2-6:
stage: testing
image: ruby:2.4-alpine
image: ruby:2.6-alpine
script:
- apk add --update alpine-sdk mysql-dev
- bundle install
......@@ -61,7 +61,7 @@ rack_test_2-3:
- ruby test.rb
deploy_to_production:
stage: deploy
image: ubuntu:16.04
image: ubuntu:18.04
only:
- master
environment:
......
Markdown is supported
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