Created
October 14, 2017 17:12
-
-
Save thescientist13/c8391ce5669ad55de5e2c0954a368c57 to your computer and use it in GitHub Desktop.
CircleCI config.yml after custom nodejs-dev Docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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