]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
.gitlab-ci.yml: save rootfs as artifact for runtime tests
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 30 Jul 2017 04:49:43 +0000 (01:49 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 31 Jul 2017 19:23:25 +0000 (21:23 +0200)
commitaf6b5830ececa3a61afa70a35711654f0b2cc32a
treef6a9703764cd105f98796af2f6755e90d1185dd8
parent02ca51f63ec72d4f6c4eb627b0919e6b9ea1b428
.gitlab-ci.yml: save rootfs as artifact for runtime tests

Sometimes when a test fails in a gitlab pipeline the reason of the
failure cannot be determined using only the logfile.

Add the modified rootfs as an artifact of the job to improve
troubleshooting. To accomplish this, always use -k option from the test
infra, unconditionally add the resulting images to the artifacts, and
let the runner do the cleanup for us.

These artifacts can also be useful when a test fails locally but pass at
gitlab runners.

When the test does not generate a image, this message is displayed in
the runner log:
WARNING: test-output/*/images/*: no matching files

Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
.gitlab-ci.yml
.gitlab-ci.yml.in