mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-26 13:35:32 +08:00
Update Circle.yml with more caching
This commit is contained in:
@@ -1,17 +1,28 @@
|
||||
machine:
|
||||
node:
|
||||
version: 6
|
||||
pre:
|
||||
- mkdir ~/.yarn-cache
|
||||
environment:
|
||||
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
cache_directories:
|
||||
- "~/.yarn-cache"
|
||||
- ~/.cache/yarn
|
||||
- ./website/node_modules
|
||||
- ./examples/NavigationPlayground/node_modules
|
||||
- ./examples/ReduxExample/node_modules
|
||||
override:
|
||||
- yarn install
|
||||
- cd website && yarn install
|
||||
- yarn
|
||||
- cd website && yarn
|
||||
- cd examples/NavigationPlayground && yarn add file:../.. && yarn
|
||||
- cd examples/ReduxExample && yarn add file:../.. && yarn
|
||||
|
||||
test:
|
||||
post:
|
||||
- yarn codecov
|
||||
- cd examples/NavigationPlayground && yarn test
|
||||
- cd examples/ReduxExample && yarn test
|
||||
|
||||
deployment:
|
||||
website-prod:
|
||||
@@ -19,9 +30,3 @@ deployment:
|
||||
commands:
|
||||
- yarn run build-docs
|
||||
- ./scripts/deploy-website.sh
|
||||
|
||||
test:
|
||||
post:
|
||||
- yarn codecov
|
||||
- cd examples/NavigationPlayground && yarn add file:../.. && yarn install && yarn test
|
||||
- cd examples/ReduxExample && yarn add file:../.. && yarn install && yarn test
|
||||
|
||||
Reference in New Issue
Block a user