Cache rubocop cache for CI
This commit is contained in:
parent
eab9ffeff6
commit
5fd950db21
|
@ -388,7 +388,6 @@ spinach-mysql 2 3: *spinach-metadata-mysql
|
||||||
|
|
||||||
# Static analysis jobs
|
# Static analysis jobs
|
||||||
.ruby-static-analysis: &ruby-static-analysis
|
.ruby-static-analysis: &ruby-static-analysis
|
||||||
<<: *pull-cache
|
|
||||||
variables:
|
variables:
|
||||||
SIMPLECOV: "false"
|
SIMPLECOV: "false"
|
||||||
SETUP_DB: "false"
|
SETUP_DB: "false"
|
||||||
|
@ -409,6 +408,12 @@ static-analysis:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- scripts/static-analysis
|
- scripts/static-analysis
|
||||||
|
cache:
|
||||||
|
key: "ruby-2.3.6-with-yarn-and-rubocop"
|
||||||
|
paths:
|
||||||
|
- vendor/ruby
|
||||||
|
- .yarn-cache/
|
||||||
|
- tmp/rubocop_cache
|
||||||
|
|
||||||
# Documentation checks:
|
# Documentation checks:
|
||||||
# - Check validity of relative links
|
# - Check validity of relative links
|
||||||
|
|
|
@ -17,6 +17,7 @@ AllCops:
|
||||||
- 'bin/**/*'
|
- 'bin/**/*'
|
||||||
- 'generator_templates/**/*'
|
- 'generator_templates/**/*'
|
||||||
- 'builds/**/*'
|
- 'builds/**/*'
|
||||||
|
CacheRootDirectory: tmp
|
||||||
|
|
||||||
# Gitlab ###################################################################
|
# Gitlab ###################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue