(MODE-11365) Added cache for node_modules, testing artifact creation.
This commit is contained in:
parent
df5c0c6e30
commit
f90f8c9a1a
1 changed files with 7 additions and 0 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue