mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
More CI parallelization optimizations
This commit is contained in:
@@ -9,12 +9,7 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: v1-react-navigation-{{ .Branch }} # generate cache per branch
|
||||
- run:
|
||||
command: |
|
||||
yarn
|
||||
cd website && yarn && cd ../
|
||||
cd examples/NavigationPlayground && yarn && cd ../../
|
||||
cd examples/ReduxExample && yarn && cd ../../
|
||||
- run: ./scripts/test.sh
|
||||
- save_cache:
|
||||
key: v1-react-navigation-{{ .Branch }} # generate cache per branch
|
||||
paths:
|
||||
@@ -22,10 +17,10 @@ jobs:
|
||||
- ~/react-navigation/website/node_modules
|
||||
- ~/react-navigation/examples/NavigationPlayground/node_modules
|
||||
- ~/react-navigation/examples/ReduxExample/node_modules
|
||||
- run: ./scripts/test.sh
|
||||
- deploy:
|
||||
command: |
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
cd website && yarn && cd ../
|
||||
yarn run build-docs
|
||||
./scripts/deploy-website.sh
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -eo pipefail
|
||||
|
||||
case $CIRCLE_NODE_INDEX in
|
||||
0) yarn test && yarn codecov ;;
|
||||
1) cd examples/NavigationPlayground && yarn test ;;
|
||||
2) cd examples/ReduxExample && yarn test ;;
|
||||
0) yarn && yarn test && yarn codecov ;;
|
||||
1) cd examples/NavigationPlayground && yarn && yarn test ;;
|
||||
2) cd examples/ReduxExample && yarn && yarn test ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user