Skip to content
Snippets Groups Projects
Unverified Commit 057df18c authored by Moritz Schlarb's avatar Moritz Schlarb Committed by GitHub
Browse files

Update .gitlab-ci.yml (#2984)

Use vendor/bundle as Bundler install location (just like in GitHub Actions)

GitLab CI otherwise won't actually cache anything at all, because caching only works
on paths in the local working copy (https://docs.gitlab.com/ee/ci/yaml/#cache).

Also, the cache only makes sense for the test task, the other ones use Docker anyways.
parent 432bd0b5
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,6 @@ stages: ...@@ -3,10 +3,6 @@ stages:
- build - build
- deploy - deploy
cache:
paths:
- /cache
before_script: before_script:
test: test:
...@@ -14,9 +10,13 @@ test: ...@@ -14,9 +10,13 @@ test:
image: ruby:2.5 image: ruby:2.5
script: script:
- apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs - apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs
- bundle install --path /cache - bundle config path vendor/bundle
- bundle install --jobs 4 --retry 3
- bundle exec rake db:create RAILS_ENV=test - bundle exec rake db:create RAILS_ENV=test
- bundle exec rake test & bundle exec rspec & bundle exec rubocop --parallel - bundle exec rake test & bundle exec rspec & bundle exec rubocop --parallel
cache:
paths:
- vendor/bundle
except: except:
variables: variables:
- $CD_TEST_IGNORE - $CD_TEST_IGNORE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment