Improve CI configuration file for pages stage
This commit is contained in:
parent
f0f77252b8
commit
ccbd77b2a7
|
@ -192,14 +192,14 @@ spinach 9 10 ruby23: *spinach-knapsack-ruby23
|
||||||
|
|
||||||
# Other generic tests
|
# Other generic tests
|
||||||
|
|
||||||
.static-analyses-variables: &static-analyses-variables
|
.ruby-static-analysis: &ruby-static-analysis
|
||||||
variables:
|
variables:
|
||||||
SIMPLECOV: "false"
|
SIMPLECOV: "false"
|
||||||
USE_DB: "false"
|
USE_DB: "false"
|
||||||
USE_BUNDLE_INSTALL: "true"
|
USE_BUNDLE_INSTALL: "true"
|
||||||
|
|
||||||
.exec: &exec
|
.exec: &exec
|
||||||
<<: *static-analyses-variables
|
<<: *ruby-static-analysis
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- bundle exec $CI_BUILD_NAME
|
- bundle exec $CI_BUILD_NAME
|
||||||
|
@ -226,7 +226,7 @@ teaspoon:
|
||||||
|
|
||||||
bundler:audit:
|
bundler:audit:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *static-analyses-variables
|
<<: *ruby-static-analysis
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
|
@ -241,6 +241,7 @@ coverage:
|
||||||
script:
|
script:
|
||||||
- bundle exec scripts/merge-simplecov
|
- bundle exec scripts/merge-simplecov
|
||||||
artifacts:
|
artifacts:
|
||||||
|
name: coverage
|
||||||
expire_in: 31d
|
expire_in: 31d
|
||||||
paths:
|
paths:
|
||||||
- coverage/index.html
|
- coverage/index.html
|
||||||
|
@ -262,13 +263,12 @@ notify:slack:
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
before_script: []
|
before_script: []
|
||||||
services: []
|
|
||||||
variables: {}
|
|
||||||
stage: pages
|
stage: pages
|
||||||
dependencies:
|
dependencies:
|
||||||
- coverage
|
- coverage
|
||||||
script:
|
script:
|
||||||
- mkdir -p public/coverage-ruby
|
- mv public/ .public/
|
||||||
|
- mkdir public/
|
||||||
- mv coverage public/coverage-ruby
|
- mv coverage public/coverage-ruby
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
Loading…
Reference in New Issue