Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Travis ci allow ghc versions larger than 7.8?

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

like image 368
fho Avatar asked Apr 08 '15 14:04

fho


1 Answers

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" 
like image 109
Dogbert Avatar answered Nov 05 '22 21:11

Dogbert