From b697eb1c2faaa01ed5001674c7f7ce6a904a64bb Mon Sep 17 00:00:00 2001 From: Marc Brinkmann Date: Thu, 20 Sep 2018 11:59:37 +0200 Subject: [PATCH] Add caching and log collection. --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0dc84e2..10fbee8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ -# TODO: Check caching. -# TODO: After failure log collection. -# TODO: Collect logs on failure. +cache: + key: ${CI_COMMIT_REF_SLUG} .global: &global # Required tags setup for current worker setup. @@ -24,3 +23,10 @@ test:cargo: <<: *global script: - cargo test --all-features --release + # collect logs in case of failure + artifacts: + paths: + - "net-trace*.txt" + - "tests/*.proptest-regressions" + expire_in: 1 week + when: on_failure