Skip to content

Instantly share code, notes, and snippets.

@6qat
Forked from charpeni/config.yml
Created July 15, 2017 13:39
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