Fix travis scripts

This commit is contained in:
Wei Zhu 2017-07-03 18:01:31 +08:00
parent ba168b826f
commit 4477726412

View File

@ -19,12 +19,12 @@ script:
npm run lint
elif [ "$TEST_TYPE" = dist ]; then
npm run dist && \
node ./tests/dekko/dist.test.js
node ./tests/dekko/dist.test.js && \
LIB_DIR=dist npm test -- --coverage -w 2
elif [ "$TEST_TYPE" = compile ]; then
npm run compile && \
node ./tests/dekko/lib.test.js
LIB_DIR=es npm test -- --coverage -w 2
node ./tests/dekko/lib.test.js && \
LIB_DIR=es npm test -- --coverage -w 2 && \
LIB_DIR=lib npm test -- --coverage -w 2
elif [ "$TEST_TYPE" = test:dom ]; then
npm run dist && \