ladenedge ladenedge - 1 year ago 62
Node.js Question

Why is my .travis.yml file being ignored?

Here is my .travis.yml file:

language: node_js
- "6.10"
- "6"
- node_modules

(It is also available on Github.)

Here is my build log on Travis, showing the wrong Node version:

Travis build log

And here is the versionless config for the same build:

enter image description here

Finally, here is the caching report for my build:

enter image description here

I have tried changing my .travis.yml file in numerous ways, including:

  • other version strings,

  • different indentations and line ending combinations,

  • with and without
    , etc.,

but nothing I do seems to have any effect.

I have enabled "Build only if .travis.yml is present", so apparently it is finding the file itself, just not what's in it. What am I missing?

Answer Source

It turns out there was hidden leading whitespace before my language key. A helpful Travis tech support specialist removed the whitespace and solved my problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download