More CI parallelization optimizations

This commit is contained in:
Adam Miskiewicz
2017-05-14 23:14:22 -07:00
parent aa84a5e316
commit 9edb4ef5e8
2 changed files with 5 additions and 10 deletions

View File

@@ -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

View File

@@ -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