diff --git a/.travis.yml b/.travis.yml index 76e37e47..908a1a89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,9 @@ sudo: false notifications: email: - yiminghe@gmail.com - - hust2012jiangkai@gmail.com node_js: -- 10 +- 12 before_install: - | @@ -17,11 +16,11 @@ before_install: echo "Only docs were updated, stopping build process." exit fi - phantomjs --version script: - | if [ "$TEST_TYPE" = test ]; then - npm test + npm test -- --coverage && \ + bash <(curl -s https://codecov.io/bash) else npm run $TEST_TYPE fi