--- image: ruby:2.5 stages: - prepare - test bundle: stage: prepare script: - bundle install --path='vendor/bundle' artifacts: untracked: true expire_in: 1 hour paths: - 'vendor/' cache: untracked: true paths: - 'vendor/' rubocop: stage: test script: - bundle install --path='vendor/bundle' - bundle exec rubocop dependencies: - bundle rspec: stage: test script: - bundle install --path='vendor/bundle' - bundle exec rspec dependencies: - bundle dummy: stage: test script: - cd dummy - bundle install --path='vendor/bundle' - bundle exec rubocop - bundle exec rspec