Skip to content

Commit

Permalink
ci: upgrade ci scirpts
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Nov 28, 2019
1 parent 364571b commit 50196a3
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .circleci/config.yml
Expand Up @@ -33,33 +33,22 @@ jobs:
key: v1-deps-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn

- persist_to_workspace:
root: ~/project
paths:
- node_modules
- packages/*/node_modules
- packages/@vuepress/*/node_modules

#------------------------------------------------------------
# 2. Run parallel jobs:
# => lerna-boostrap
# => tsc
# => tests
# => linter
# => docs linter
#------------------------------------------------------------

lerna-bootstrap:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/project
- run:
name: 'Lerna bootstrap'
command: yarn lerna:bootstrap

run-tsc:
<<: *defaults
steps:
Expand Down Expand Up @@ -92,8 +81,8 @@ jobs:
at: ~/project
- run:
name: 'Run linter'
command: yarn lint:check
command: yarn lint

run-docs-linter-check:
<<: *defaults
steps:
Expand All @@ -103,7 +92,7 @@ jobs:
- run:
name: 'Run md linter'
command: yarn workspace docs lint-md

#------------------------------------------------------------
# 3. Build VuePress
#------------------------------------------------------------
Expand All @@ -127,9 +116,8 @@ workflows:
build:
jobs:
- install-dependencies
- lerna-bootstrap: { requires: [install-dependencies] }
- run-linter-check: { requires: [install-dependencies] }
- run-docs-linter-check: { requires: [install-dependencies] }
- run-tsc: { requires: [install-dependencies] }
- run-tests: { requires: [run-tsc] }
- build: { requires: [run-tests, run-linter-check, run-docs-linter-check, lerna-bootstrap] }
- build: { requires: [run-tests, run-linter-check, run-docs-linter-check] }

0 comments on commit 50196a3

Please sign in to comment.