Here is my .travis.yml file:
language: node_js
node_js:
- "6.10"
- "6"
cache:
directories:
- node_modules
(It is also available on Github.)
Here is my build log on Travis, showing the wrong Node version:
And here is the versionless config for the same build:
Finally, here is the caching report for my build:
I have tried changing my .travis.yml file in numerous ways, including:
cache, 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?
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.
I had the same problem, but the solution was, that I had a foder named .travis/ in the root directory. I had to rename it to something else and then travis notived the .travis.yml file again