2018-04-12 14:36:56 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2021-10-26 15:21:21 +02:00
|
|
|
- image: node:14.18.1-buster-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:
|
2020-12-01 15:16:59 +01:00
|
|
|
- node_modules-{{ arch }}-node14.15.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
2018-04-12 14:36:56 +02:00
|
|
|
- run:
|
|
|
|
name: Install packages
|
2020-09-13 10:13:22 +02:00
|
|
|
command: yarn install
|
2018-04-12 14:36:56 +02:00
|
|
|
- save_cache:
|
|
|
|
name: Saving cache - node_modules
|
2020-12-01 15:16:59 +01:00
|
|
|
key: node_modules-{{ arch }}-node14.15.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
2018-04-12 14:36:56 +02:00
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
- run:
|
2018-12-26 12:29:05 +01:00
|
|
|
name: spec
|
2020-09-13 10:13:22 +02:00
|
|
|
command: yarn run spec
|
2021-08-27 13:31:36 +02:00
|
|
|
- run:
|
|
|
|
name: compile main
|
|
|
|
command: yarn run pack:main
|
|
|
|
- run:
|
|
|
|
name: compile renderer
|
|
|
|
command: yarn run pack:renderer
|