Split test commands into test.sh, respect CIRCLE_NODE_INDEX

This commit is contained in:
Adam Miskiewicz
2017-05-14 22:11:03 -07:00
parent 9a4499fd42
commit a3f47ad4be
2 changed files with 10 additions and 5 deletions

View File

@@ -20,11 +20,7 @@ dependencies:
test:
override:
- yarn test:
parallel: true
- cd examples/NavigationPlayground && yarn test:
parallel: true
- cd examples/ReduxExample && yarn test:
- ./scripts/test.sh:
parallel: true
post:
- yarn codecov

View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -eo pipefail
case $CIRCLE_NODE_INDEX in
0) yarn test ;;
1) cd examples/NavigationPlayground && yarn test ;;
2) cd examples/ReduxExample && yarn test ;;
esac