forked from sparkles-dev/ng-in-the-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: configure circle ci 2.0 (sparkles-dev#5)
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: 2 | ||
defaults: &defaults | ||
docker: | ||
- image: angular/ngcontainer:latest | ||
working_directory: ~/repo | ||
|
||
jobs: | ||
# Build for all branches and tags | ||
build: | ||
<<: *defaults | ||
steps: | ||
# Checkout, Download and cache dependencies | ||
- checkout | ||
- restore_cache: | ||
key: v2-dependencies-{{ checksum "yarn.lock" }} | ||
# Install dependencies | ||
- run: yarn install --frozen-lockfile --non-interactive | ||
- save_cache: | ||
key: v2-dependencies-{{ checksum "yarn.lock" }} | ||
paths: | ||
- "node_modules" | ||
# Run the ci build | ||
- run: yarn test | ||
# Store artefacts on circle | ||
- run: | ||
name: Collect artefacts | ||
command: | | ||
mkdir -p /tmp/artefacts \ | ||
&& cp -r --parents integration/samples/**/dist /tmp/artefacts \ | ||
&& cp -r --parents integration/consumers/**/dist /tmp/artefacts | ||
- store_artifacts: | ||
path: ~/repo/dist | ||
destination: dist | ||
|
||
workflows: | ||
version: 2 | ||
cirunner: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
ignore: /gh-pages/ | ||
tags: | ||
only: /v.*/ |