Commit 54fcd5b7 authored by Cool Fire's avatar Cool Fire

Merge branch 'development' into 'master'

Merge environment deploy hint to master

See merge request !7
parents 4c2059a9 4f6c2bb8
Pipeline #365 passed with stages
in 3 minutes and 6 seconds
......@@ -6,43 +6,43 @@ stages:
- deploy
syntax_ruby_2-4:
stage: syntax
image: ruby:2.4
image: ruby:2.4-alpine
script:
- ruby -v
- find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
syntax_erb_2-4:
stage: syntax
image: ruby:2.4
image: ruby:2.4-alpine
script:
- ruby -v
- find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
syntax_ruby_2-3:
stage: syntax
image: ruby:2.3
image: ruby:2.3-alpine
script:
- ruby -v
- find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
syntax_erb_2-3:
stage: syntax
image: ruby:2.3
image: ruby:2.3-alpine
script:
- ruby -v
- find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
lint_ruby:
stage: linting
image: ruby:2.4
image: ruby:2.4-alpine
script:
- gem install rubocop --no-ri --no-rdoc
- rubocop -l -f s
lint_yaml:
stage: linting
image: ruby:2.4
image: ruby:2.4-alpine
script:
- gem install yamllint --no-ri --no-rdoc
- yamllint content/*.yaml
rack_test:
stage: testing
image: ruby:2.4
image: ruby:2.4-alpine
script:
- gem install rack-test --no-ri --no-rdoc
- bundle install
......@@ -53,6 +53,9 @@ deploy_to_production:
image: ubuntu:16.04
only:
- master
environment:
name: production
url: https://signup.insomnia247.nl
script:
- apt-get update
- apt-get install -y -qq ruby
......
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