chore(CI): assign node_js for each script

This commit is contained in:
harttle
2019-01-28 15:40:32 +08:00
parent 0238cf2c44
commit 22b7e55fc9
+6 -6
View File
@@ -1,24 +1,24 @@
language: node_js
node_js:
- "8"
- "6"
- "4"
node_js: "8"
jobs:
include:
- stage: test
name: 'Linting'
script: npm run lint
- name: 'Unit Test'
script: if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run unit && npm run coveralls; fi
script: npm run unit && npm run coveralls
- name: 'E2E Test'
script: npm run e2e
node_js:
- "8"
- "6"
- "4"
- stage: build
script: npm run build
- stage: release
if: branch = master
node_js: "8"
script: skip
deploy:
provider: script