问题
I just created a Haskell Travis CI project with this .travis.yml
:
language: haskell
ghc:
- 7.8
- 7.10
But Travis interprets the second version as 7.1
: https://travis-ci.org/fhaust/dtw/jobs/57648139
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"
Is this a bug?
Edit 2015-11-22
There is an open issue for GHC 7.10 on travis-ci: https://github.com/travis-ci/travis-ci/issues/3785
回答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
.
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"
来源:https://stackoverflow.com/questions/29516932/does-travis-ci-allow-ghc-versions-larger-than-7-8