Skip to content

Commit

Permalink
ci(CircleCI): Updating to Circle2
Browse files Browse the repository at this point in the history
fix #79
  • Loading branch information
Pam Selle committed Sep 14, 2018
1 parent 46d6f31 commit 702282e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,43 @@
defaults: &defaults
docker:
- image: iopipe/circleci
working_directory: ~/circleci-deployment

version: 2

jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run: yarn
- run: yarn run validate
- save_cache:
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
paths:
- dist

release:
<<: *defaults
steps:
- checkout
- restore_cache:
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- restore_cache:
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn
- run: yarn run release

workflows:
version: 2
all:
jobs:
- test
- release:
requires:
- test
filters:
branches:
only: master

0 comments on commit 702282e

Please sign in to comment.