Run publish script tests in Debug and Release
Forgot the Release tests didn't cover Chrome debug mode.
This commit is contained in:
parent
395f241f72
commit
72675f6658
|
@ -64,11 +64,13 @@ git fetch origin || die 'Failed to fetch from git origin.'
|
|||
|
||||
# Run all tests that must pass before publishing.
|
||||
for test in eslint jsdoc realmjs react-example react-tests react-tests-android; do
|
||||
echo "RUNNING TEST: $test"
|
||||
for configuration in Debug Release; do
|
||||
echo "RUNNING TEST: $test ($configuration)"
|
||||
echo '----------------------------------------'
|
||||
npm test "$test" Release || die "Test Failed: $test"
|
||||
npm test "$test" "$configuration" || die "Test Failed: $test ($configuration)"
|
||||
echo
|
||||
done
|
||||
done
|
||||
|
||||
# Double check before actually publishing.
|
||||
confirm "Are you sure you want to publish $VERSION?" || die "Aborted publishing $VERSION"
|
||||
|
|
Loading…
Reference in New Issue