From f90f8c9a1a8efb86a669aa448b5fde69e515f9ef Mon Sep 17 00:00:00 2001 From: Sokratis Siozos-Drosos Date: Wed, 24 Apr 2019 13:20:08 +0200 Subject: [PATCH] (MODE-11365) Added cache for node_modules, testing artifact creation. --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a51a15..aafb73e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,12 +6,19 @@ jobs: - image: node:6.17.1-jessie steps: - checkout + - restore_cache: + key: node-dependencies-{{ checksum "package.json" }} - run: npm install + - save_cache: + paths: + - node_modules + key: node-dependencies-{{ checksum "package.json" }} - run: name: Build Artifact command: | mkdir ./artifact DEPLOYABLE="${CIRCLE_PROJECT_REPONAME}-${CIRCLE_SHA1}.tar.gz" + rsync -avz --exclude 'artifact' * artifact/ cp -rf * ./artifact/ pushd ./artifact echo "Taring ${DEPLOYABLE}"