language: node_js

node_js:
  - "11"

before_script:
  - npm install codecov --save-dev
  - npm run build

script:
 - npm run test
#指定分支，只有指定的分支提交时才会运行脚本
branches:
  only:
    - master
