1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-05 22:17:24 +02:00

build(circleci): clean up config

See also: https://discuss.circleci.com/t/new-node-js-convenience-image-public-beta/33130
This commit is contained in:
Pete Colapietro
2020-06-03 09:07:46 -04:00
committed by Peter Colapietro
parent ebcb62a805
commit 713bfc731b

View File

@@ -7,7 +7,7 @@ defaults: &defaults
working_directory: ~/app working_directory: ~/app
supported-node-versions: &supported-node-versions supported-node-versions: &supported-node-versions
node-version: ["10.20.1", "12.16.3", "13.14.0", "14.2.0"] node-version: ["10.21.0", "12.18.0", "13.14.0", "14.4.0"]
@@ -29,7 +29,7 @@ jobs:
<<: *defaults <<: *defaults
docker: docker:
- image: circleci/node:lts - image: cimg/node:lts
steps: steps:
- restore_cache: - restore_cache:
@@ -61,7 +61,7 @@ jobs:
type: string type: string
docker: docker:
- image: "circleci/node:<< parameters.node-version >>" - image: "cimg/node:<< parameters.node-version >>"
steps: steps:
@@ -100,36 +100,19 @@ jobs:
<<: *defaults <<: *defaults
docker: docker:
- image: "circleci/node:lts" - image: "cimg/node:lts"
steps: steps:
- checkout - checkout
build-in-all-supported-versions-of-node: - restore_cache:
<<: *defaults name: Restore npm Package Cache
keys:
parameters: - "npm-{{ checksum \"package-lock.json\" }}"
node-version:
type: string
docker:
- image: "circleci/node:<< parameters.node-version >>"
steps:
- attach_workspace:
at: .
- run: - run:
name: Move node_modules to correct location for build name: Install Dependencies
command: "[ ! -d \"node_modules_<< parameters.node-version >>\" ] || mv \"node_modules_<< parameters.node-version >>\" node_modules" command: npm install
- restore_cache:
name: Restore Build Cache
keys:
- build-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
- build-{{ .Branch }}
- build-master
- build-
- run: - run:
name: Build the Framework name: Build the Framework
@@ -141,16 +124,44 @@ jobs:
paths: paths:
- css - css
- save_cache:
name: Save npm Package Cache
key: "npm-{{ checksum \"package-lock.json\" }}"
paths:
- "node_modules"
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
- css - css
build-in-all-supported-versions-of-node:
<<: *defaults
parameters:
node-version:
type: string
docker:
- image: "cimg/node:<< parameters.node-version >>"
steps:
- attach_workspace:
at: .
- run:
name: Move node_modules to correct location for build
command: "[ ! -d \"node_modules_<< parameters.node-version >>\" ] || mv \"node_modules_<< parameters.node-version >>\" node_modules"
- run:
name: Build the Framework
command: npm run build
lint: lint:
<<: *defaults <<: *defaults
docker: docker:
- image: "circleci/node:lts" - image: "cimg/node:lts"
steps: steps:
- attach_workspace: - attach_workspace:
@@ -196,7 +207,7 @@ jobs:
<<: *defaults <<: *defaults
docker: docker:
- image: circleci/node:lts - image: cimg/node:lts
steps: steps:
- attach_workspace: - attach_workspace:
@@ -245,6 +256,7 @@ workflows:
- release: - release:
requires: requires:
- commitlint - commitlint
- build
- build-in-all-supported-versions-of-node - build-in-all-supported-versions-of-node
- lint - lint
# - test # - test