(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
|
- 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}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue