tpitale/mail_room

View on GitHub
.gitlab-ci.yml

Summary

Maintainability
Test Coverage
# Cache gems in between builds

services:
  - redis:latest

.test-template: &test
  cache:
    paths:
      - vendor/ruby
  variables:
    REDIS_URL: redis://redis:6379

  script:
    - bundle exec rspec spec
  before_script:
    - apt update && apt install -y libicu-dev
    - ruby -v                                   # Print out ruby version for debugging
    # Uncomment next line if your rails app needs a JS runtime:
    # - apt-get update -q && apt-get install nodejs -yqq
    - gem install bundler  --no-document    # Bundler is not installed with the image
    - bundle install -j $(nproc) --path vendor  # Install dependencies into ./vendor/ruby

rspec-2.5:
  image: "ruby:2.5"
  <<: *test

rspec-2.6:
  image: "ruby:2.6"
  <<: *test

rspec-2.7:
  image: "ruby:2.7"
  <<: *test