Skip to content

chore(ci): migrate to circle ci 2 #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions circle.yml

This file was deleted.