Skip to content

Commit

Permalink
ci: configure circle ci 2.0 (sparkles-dev#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dherges authored Jan 15, 2018
1 parent 738bfde commit 4432018
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
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.*/

0 comments on commit 4432018

Please sign in to comment.