Skip to content
Permalink
Browse files
chore(ci): migrate to circle ci 2 (#281)
  • Loading branch information
ktsn committed Oct 13, 2018
1 parent 6b5471c commit d45b38c1ee8ca63a64f4b262d31ca4d4cd5fa45e
Showing with 62 additions and 3 deletions.
  1. +62 −0 .circleci/config.yml
  2. +0 −3 circle.yml
@@ -0,0 +1,62 @@
version: 2

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:8-browsers

jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-vue-class-component-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-vue-class-component-{{ .Branch }}-
- v1-vue-class-component-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-vue-class-component-{{ .Branch }}-{{ checksum "yarn.lock" }}
- persist_to_workspace:
root: ~/
paths:
- repo

build:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn build

example-build:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn example

test:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test

workflows:
version: 2
build-and-test:
jobs:
- install
- build:
requires:
- install
- example-build:
requires:
- install
- test:
requires:
- install

This file was deleted.

0 comments on commit d45b38c

Please sign in to comment.