Skip to content

Instantly share code, notes, and snippets.

@charpeni
Created July 13, 2017 01:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save charpeni/464f3aa17af066e8e170c04fd673aefb to your computer and use it in GitHub Desktop.
Save charpeni/464f3aa17af066e8e170c04fd673aefb to your computer and use it in GitHub Desktop.
CircleCI configuration for Angular CLI
version: 2
jobs:
build:
working_directory: ~/app-name
docker:
- image: circleci/node:6-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: install-dependencies
command: yarn install
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- ./node_modules
- run:
name: angular-build
command: yarn ng -- build --prod --aot --no-progress
- run:
name: angular-test
command: yarn test -- --single-run --no-progress
- run:
name: angular-lint
command: yarn lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment