2018-04-12 14:36:56 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-08-29 15:48:46 +02:00
|
|
|
- image: node:10-slim
|
2018-04-12 14:36:56 +02:00
|
|
|
working_directory: /var/opt/app
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
name: Restoring cache - node_modules
|
|
|
|
keys:
|
|
|
|
- node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
|
|
|
|
- run:
|
|
|
|
name: Install packages
|
|
|
|
command: npm install
|
|
|
|
- save_cache:
|
|
|
|
name: Saving cache - node_modules
|
|
|
|
key: node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
- run:
|
2018-07-11 17:46:55 +02:00
|
|
|
name: mocha
|
|
|
|
command: npm run mocha
|