From 11f91bd451e57241dc9ed7c062ff4553e60b3a4e Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 7 Nov 2017 10:55:19 +0800 Subject: [PATCH] Fix test_node --- scripts/travis-script.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/travis-script.sh b/scripts/travis-script.sh index 277bd3d2d0..a749e4338d 100755 --- a/scripts/travis-script.sh +++ b/scripts/travis-script.sh @@ -11,6 +11,14 @@ run_test() { fi } +run_test_node() { + if [ "$REACT" != 16 ]; then + npm run test-node -- -w 2 -u + else + npm run test-node -- -w 2 + fi +} + if [ "$TEST_TYPE" = lint ]; then npm run lint elif [ "$TEST_TYPE" = test:dist ]; then @@ -30,5 +38,5 @@ elif [ "$TEST_TYPE" = test:dom ]; then bash <(curl -s https://codecov.io/bash) fi elif [ "$TEST_TYPE" = test:node ]; then - npm run test-node -- -w 2 -u + run_test_node fi