mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 22:51:57 +08:00
Split test commands into test.sh, respect CIRCLE_NODE_INDEX
This commit is contained in:
@@ -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
|
||||
|
||||
9
packages/react-navigation/scripts/test.sh
Executable file
9
packages/react-navigation/scripts/test.sh
Executable 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
|
||||
Reference in New Issue
Block a user