# -*- mode: yaml; -*-
# vim:set shiftwidth=2 syntax=yaml:

image: ruby:2.3

stages:
  - prepare
  - build
  - test
  - deployment

cache:
  key: "$CI_PROJECT_PATH"
  paths:
    - .bundle/
    - doc/
    - vendor/

variables:
  BUNDLE_APP_CONFIG: .bundle

before_script:
  - gem update did_you_mean
  - bundle install --deployment --jobs $(nproc --ignore=1)

rake-test-ruby23:
  image: ruby:2.3
  stage: test
  script:
    - bundle exec rake test

rake-test-ruby24:
  image: ruby:2.4
  stage: test
  script:
    - bundle exec rake test

# -*- mode: yaml; -*-
# vim:set shiftwidth=2 syntax=yaml:

image: ruby:2.4

stages:
  - prepare
  - build
  - test
  - deployment

cache:
  key: "$CI_PROJECT_PATH"
  paths:
    - .bundle/
    - doc/
    - vendor/

variables:
  BUNDLE_APP_CONFIG: .bundle

before_script:
  - gem update did_you_mean
  - bundle install --deployment --jobs $(nproc --ignore=1)

rake-test:
  stage: test
  script:
    - bundle exec rake test

Drop ruby 2.3/2.4 tests in Gitlab CI, only test with ruby 2.4 for now
Drop ruby 2.3/2.4 tests in Gitlab CI, only test with ruby 2.4 for now
