chore(CI): enable semantic release

This commit is contained in:
harttle
2019-01-28 15:18:21 +08:00
parent 8cb0137362
commit 601f2e48fc
4 changed files with 6350 additions and 1114 deletions
+23 -7
View File
@@ -3,10 +3,26 @@ node_js:
- "8"
- "6"
- "4"
before_script:
- npm install -g mocha
script:
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run test; fi
- npm run e2e
after_success:
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run coveralls; fi
jobs:
include:
- stage: test
- name: 'Linting'
script: npm run lint
- name: 'Unit Test'
script: if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run unit; fi
- name: 'E2E Test'
script: npm run e2e
- name: 'Test Coverage'
script: if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run coveralls; fi
- stage: build
script: npm run build
- stage: release
if: branch = master
node_js: "8"
script: skip
deploy:
provider: script
skip_cleanup: true
script: npx semantic-release