Node.js 未版本内置Travis CI
为什么Travis CI使用匿名版本添加额外的Node.js构建,然后使用Node.js 0.10.x构建它 这是我的Node.js 未版本内置Travis CI,node.js,travis-ci,Node.js,Travis Ci,为什么Travis CI使用匿名版本添加额外的Node.js构建,然后使用Node.js 0.10.x构建它 这是我的.travis.yml文件: language: node_js sudo: required dist: trusty matrix: include: - node_js: "0.10" script: "npm test" - node_js: "0.12" script: "npm test" - node_js: "4
.travis.yml
文件:
language: node_js
sudo: required
dist: trusty
matrix:
include:
- node_js: "0.10"
script: "npm test"
- node_js: "0.12"
script: "npm test"
- node_js: "4"
script: "npm test"
- node_js: "6"
script: "npm run travis"
addons:
postgresql: "9.5"
before_script:
- psql -c 'create database pg_promise_test;' -U postgres
- node test/db/init.js
env:
- BLUEBIRD_DEBUG=0
这是我的Travis CI构建日志:
1563.1 linux Node.js
1563.2 linux Node.js: 0.10
1563.3 linux Node.js: 0.12
1563.4 linux Node.js: 4
1563.5 linux Node.js: 6
第一项总是作为我不需要的额外构建出现,因为我已经在.travis.yml
文件中指定了Node.js 0.10
有没有办法摆脱这个辅助构建?这是一个已知的错误:
编辑:这不起作用:
还没有尝试过,但您可以通过添加排除
块来摆脱无关的构建:
language: node_js
sudo: required
dist: trusty
matrix:
include:
- node_js: "0.10"
script: "npm test"
- ...
exclude:
- language: node_js
...
这是一个已知的错误:
编辑:这不起作用:
还没有尝试过,但您可以通过添加排除
块来摆脱无关的构建:
language: node_js
sudo: required
dist: trusty
matrix:
include:
- node_js: "0.10"
script: "npm test"
- ...
exclude:
- language: node_js
...
此更改导致
错误:尝试分析.travis.yml文件时出错。
。好吧,那么语言:…
对配置非常重要,因此解决同一问题的方法对键编译器:…
不适用。您可能想将您的经验添加到引用的票证中。我无法真正理解这里的回复。。。我做错了什么?你没做错什么。有一只虫子。遗憾的是,bug报告中报告的解决方法不适用于您的用例。此更改导致错误:在尝试解析.travis.yml文件时出错。
。好吧,那么语言:…
对配置非常重要,因此解决同一问题的方法对键编译器:…
不适用。您可能想将您的经验添加到引用的票证中。我无法真正理解这里的回复。。。我做错了什么?你没做错什么。有一只虫子。遗憾的是,bug报告中报告的解决方法不适用于您的用例。