Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
Why is my .travis.yml file being ignored?

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:

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 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?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

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.

over 4 years ago · Santiago Trujillo Relatório

0

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

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda