Skip to content

Commit

Permalink
WIP: Add build-node-v12 job to CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Jan 19, 2021
1 parent c906a1b commit a2076ef
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ workflows:
- test:
requires:
- build
- test-node-v12:
requires:
- build-node-v12
- test-chrome:
requires:
- build
Expand Down Expand Up @@ -69,6 +72,51 @@ jobs:
git diff
exit 1
fi
build-node-v12:
docker:
- image: circleci/node:12-buster
environment:
SES_ENABLED: 1
steps:
- run:
name: Install Git Large File Storage (LFS)
command: sudo apt-get install git-lfs
- checkout
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
command: sudo apt-get install libusb-1.0-0-dev
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
command: yarn build
- persist_to_workspace:
root: .
paths:
- packages/*/build/*
- run:
name: Check for clean workspace
command: |
SOURCE_CHANGES=$(git status --porcelain)
if [[ -n "$SOURCE_CHANGES" ]]; then
echo "Error: repository contains changes."
echo "Showing 'git status' and 'git diff' for debugging now:"
git status
git diff
exit 1
fi
test:
machine:
# We can't use a containerized environment since it requires remote docker to start custom containers.
Expand Down

0 comments on commit a2076ef

Please sign in to comment.