Skip to content

Instantly share code, notes, and snippets.

@thescientist13
Created October 14, 2017 17:12
Show Gist options
  • Save thescientist13/c8391ce5669ad55de5e2c0954a368c57 to your computer and use it in GitHub Desktop.
Save thescientist13/c8391ce5669ad55de5e2c0954a368c57 to your computer and use it in GitHub Desktop.
CircleCI config.yml after custom nodejs-dev Docker image
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: thegreenhouse/nodejs-dev
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: Install Dependencies
command: yarn install
- run:
name: Run Unit Tests
command: export NODE_ENV=production && yarn run test
- run:
name: Run the Build
command: yarn run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment