summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 17:15:00 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 17:15:00 +0200
commit95c3a927b319c8495c28e6431152e5ca0c5df30b (patch)
treebd8d1472302bac0edfcd8c9f563cc23e755f7e02 /.gitlab-ci.yml
parent432b96640fb2955d118f43ae2463347745cb8386 (diff)
downloadgitlab-ce-95c3a927b319c8495c28e6431152e5ca0c5df30b.tar.gz
Use knapsack 1.11.0
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 13 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0bce69cf5a..cf85820abdf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,27 +22,27 @@ before_script:
- cp config/gitlab.yml.example config/gitlab.yml
- bundle --version
- retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
- - retry gem install knapsack-gitlab
+ - retry gem install knapsack
- '[ "$USE_DB" != "true" ] || bundle exec rake db:drop db:create db:schema:load db:migrate'
stages:
-- build
+- prepare
- test
- notifications
prepare:
- stage: build
+ stage: prepare
variables:
USE_DB: "false"
script:
- bundle exec rake assets:precompile
- - echo "{}" > knapsack_rspec_report.json
- - echo "{}" > knapsack_spinach_report.json
+ - mkdir knapsack/
+ - echo "{}" > knapsack/rspec_report.json
+ - echo "{}" > knapsack/spinach_report.json
artifacts:
paths:
- public/assets/
- - knapsack_rspec_report.json
- - knapsack_spinach_report.json
+ - knapsack/
.knapsack: &knapsack
stage: test
@@ -50,7 +50,12 @@ prepare:
- JOB_NAME=( $CI_BUILD_NAME )
- export CI_NODE_INDEX=${JOB_NAME[1]}
- export CI_NODE_TOTAL=${JOB_NAME[2]}
- - knapsack-gitlab ${JOB_NAME[0]}
+ - export KNAPSACK_REPORT_PATH=knapsack/${JOB_NAME}_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
+ - cp knapsack/${JOB_NAME}_report.json ${KNAPSACK_REPORT_PATH}
+ - knapsack ${JOB_NAME[0]}
+ artifacts:
+ paths:
+ - knapsack/
.exec: &exec
stage: test