Skip to content

Instantly share code, notes, and snippets.

@6qat
Forked from charpeni/config.yml
Created July 15, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 6qat/3b4781ef2aea5871635c2bd9e6401a32 to your computer and use it in GitHub Desktop.
Save 6qat/3b4781ef2aea5871635c2bd9e6401a32 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