Skip to content

Commit

Permalink
Docs: don't install root dependencies on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Dec 27, 2017
1 parent b65b00d commit c458e75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,29 +137,19 @@ jobs:
steps:
- checkout
- restore_cache:
name: "Restore core dependencies cache"
keys:
- core-dependencies-{{ checksum "yarn.lock" }}
- restore_cache:
name: "Restore docs dependencies cache"
name: "Restore dependencies cache"
keys:
- docs-dependencies-{{ checksum "docs/yarn.lock" }}
- run:
name: "Install core dependencies"
command: |
yarn install
- run:
name: "Install dependencies"
command: |
yarn bootstrap --docs
- run:
name: "Dirty check"
command: |
yarn repo-dirty-check
cd docs
yarn install --frozen-lockfile
- run:
name: "Run docs"
name: "Build docs"
command: |
yarn docs:build
cd docs
yarn build
- save_cache:
name: "Cache dependencies"
key: docs-dependencies-{{ checksum "docs/yarn.lock" }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/repo-dirty-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const shell = require('shelljs');
// exit with code 1 if there are some changed files
if (shell.exec('git status --porcelain').stdout.trim() !== '') {
console.error(
'Git repo is dirty, please consider updating lockfiles by running `yarn bootstrap --reset --core --docs`'
'Git repo is dirty, please consider updating lockfiles by running `yarn bootstrap --reset --core`'
);
process.exit(1);
}

0 comments on commit c458e75

Please sign in to comment.