Travis ci允许ghc版本大于7.8吗? [英] Does Travis ci allow ghc versions larger than 7.8?
问题描述
我刚创建了一个Haskell Travis CI项目,它包含 .travis.yml
:
I just created a Haskell Travis CI project with this .travis.yml
:
language: haskell
ghc:
- 7.8
- 7.10
但Travis将第二个版本解释为 7.1
: https://travis-ci.org/fhaust/dtw/jobs/57648139
But Travis interprets the second version as 7.1
: https://travis-ci.org/fhaust/dtw/jobs/57648139
这个版本只有在我附上它在引号中(尽管这会导致其他错误,因为7.10不是Travis CI上可用的版本):
The version is only recognized if I enclose it in quotes (though this results in other errors, since 7.10 is not a version available on Travis CI):
language: haskell
ghc:
- 7.8
- "7.10"
这是一个bug?
GHC 7.10对于travis有一个未解决的问题-ci: https://github.com/travis-ci/travis-ci/ issue / 3785
There is an open issue for GHC 7.10 on travis-ci: https://github.com/travis-ci/travis-ci/issues/3785
推荐答案
这不是一个bug,它是一个缺点将YAML文件用于配置:YAML将 7.10
解析为数字 7.1
。
It's not a bug, it's a consequence of using YAML files for config: YAML parses 7.10
as the number 7.1
.
Travis 的 node.js文档
$ b
The node.js docs on Travis do have all the version numbers in quotes:
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- "0.8"
- "0.6"
- "iojs"
- "iojs-v1.0.4"
这篇关于Travis ci允许ghc版本大于7.8吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!