From b1ba5ae57a7b0167a1ed68304c320f3c5a37185b Mon Sep 17 00:00:00 2001 From: Michal Cichra Date: Tue, 12 Dec 2017 15:14:51 +0100 Subject: [PATCH] [circleci] cache perl dependencies --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c974c8083..b75a26f3b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,11 +58,20 @@ jobs: - lua_modules - run: mkdir -p tmp/junit - run: $(make rover) exec make busted + - restore_cache: + keys: + - apicast-cpanm-{{ arch }}-{{ checksum "gateway/cpanfile" }} + - apicast-cpanm-{{ arch }}-{{ .Branch }} + - apicast-cpanm-{{ arch }}-master - run: command: /usr/libexec/s2i/entrypoint make prove environment: JUNIT_OUTPUT_FILE: tmp/junit/prove.xml HARNESS: TAP::Harness::JUnit + - save_cache: + key: apicast-cpanm-{{ arch }}-{{ checksum "gateway/cpanfile" }} + paths: + - ~/perl5 - store_test_results: path: tmp/junit - store_artifacts: