2018-04-12 14:36:56 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2019-04-02 16:49:55 +02:00
|
|
|
- image: node:10.15.3-stretch-slim
|
2018-04-12 14:36:56 +02:00
|
|
|
working_directory: /var/opt/app
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-09-26 15:01:03 +02:00
|
|
|
- run:
|
2018-09-29 12:20:05 +02:00
|
|
|
name: git
|
2018-09-26 15:01:03 +02:00
|
|
|
command: |
|
|
|
|
apt-get update
|
2018-09-29 12:20:05 +02:00
|
|
|
apt-get install -y git
|
2018-04-12 14:36:56 +02:00
|
|
|
- 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-12-26 12:29:05 +01:00
|
|
|
name: spec
|
2018-12-30 08:56:38 +01:00
|
|
|
command: npm run spec
|