summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 17:35:00 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 17:35:00 +0200
commit792670f4ce467f278b5cdfd609a221bbbe26187d (patch)
treefa9d875a0bb0d2044ea26e4eeb332460fa88b30e /.gitlab-ci.yml
parent95c3a927b319c8495c28e6431152e5ca0c5df30b (diff)
downloadgitlab-ce-792670f4ce467f278b5cdfd609a221bbbe26187d.tar.gz
Merge knapsack reports and upload them to external server
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf85820abdf..6fc410b4b51 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,6 +28,7 @@ before_script:
stages:
- prepare
- test
+- post-test
- notifications
prepare:
@@ -36,7 +37,7 @@ prepare:
USE_DB: "false"
script:
- bundle exec rake assets:precompile
- - mkdir knapsack/
+ - mkdir -p knapsack/
- echo "{}" > knapsack/rspec_report.json
- echo "{}" > knapsack/spinach_report.json
artifacts:
@@ -57,6 +58,22 @@ prepare:
paths:
- knapsack/
+post-tests:
+ stage: post-test
+ variables:
+ USE_DB: "false"
+ script:
+ - scripts/merge-reports knapsack/rspec_report.json knapsack/rspec_node_*.json
+ - scripts/merge-reports knapsack/spinach_report.json knapsack/spinach_node_*.json
+ - rm -f knapsack/*_node_*.json
+ cache:
+ key: "knapsack"
+ paths:
+ - knapsack/
+ artifacts:
+ paths:
+ - knapsack/
+
.exec: &exec
stage: test
script: