(MODE-11365) Added cache for node_modules, testing artifact creation.

This commit is contained in:
Sokratis Siozos-Drosos 2019-04-24 13:20:08 +02:00
parent df5c0c6e30
commit f90f8c9a1a

View file

@ -6,12 +6,19 @@ jobs:
- image: node:6.17.1-jessie - image: node:6.17.1-jessie
steps: steps:
- checkout - checkout
- restore_cache:
key: node-dependencies-{{ checksum "package.json" }}
- run: npm install - run: npm install
- save_cache:
paths:
- node_modules
key: node-dependencies-{{ checksum "package.json" }}
- run: - run:
name: Build Artifact name: Build Artifact
command: | command: |
mkdir ./artifact mkdir ./artifact
DEPLOYABLE="${CIRCLE_PROJECT_REPONAME}-${CIRCLE_SHA1}.tar.gz" DEPLOYABLE="${CIRCLE_PROJECT_REPONAME}-${CIRCLE_SHA1}.tar.gz"
rsync -avz --exclude 'artifact' * artifact/
cp -rf * ./artifact/ cp -rf * ./artifact/
pushd ./artifact pushd ./artifact
echo "Taring ${DEPLOYABLE}" echo "Taring ${DEPLOYABLE}"