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 language: node_js
node_js: node_js: "8"
- "8"
- "6"
- "4"
jobs: jobs:
include: include:
- stage: test - stage: test
name: 'Linting' name: 'Linting'
script: npm run lint script: npm run lint
- name: 'Unit Test' - 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' - name: 'E2E Test'
script: npm run e2e script: npm run e2e
node_js:
- "8"
- "6"
- "4"
- stage: build - stage: build
script: npm run build script: npm run build
- stage: release - stage: release
if: branch = master if: branch = master
node_js: "8"
script: skip script: skip
deploy: deploy:
provider: script provider: script