Travis 找不到我的 .travis.yaml 文件
Travis cannot find my .travis.yaml file
每当我推送一个新的提交时,Travis CI 都会使我的构建失败,并在每个日志的顶部显示此消息:
WARNING: We were unable to find a .travis.yml file. This may not be
what you want. Build will be run with default settings.
Using worker:
worker-linux-docker-71483f98.prod.travis-ci.org:travis-linux-6
Could not find .travis.yml, using standard configuration.
但是,我的存储库的根目录中肯定有一个 .travis.yaml 文件。以下是其内容:
$ cat .travis.yaml
language:
node_js
node_js:
stable
script:
node_modules/grunt-cli/bin/grunt
有些人似乎遇到过类似的问题,因为他们重命名了他们的存储库,但我从未更改过这个存储库的名称。其他人说它在几个小时后自行修复,但对我来说已经 5 天了,什么都没有改变。
Travis CI 文档中没有任何内容似乎表明我需要做的不仅仅是同步我的存储库,激活我想要 CI 的存储库,并包含一个 .travis.yaml 回购中的文件。我错过了什么吗?
您为 YAML 文件使用了错误的扩展名。
需要 .travis.yml
而不是 .travis.yaml
。
每当我推送一个新的提交时,Travis CI 都会使我的构建失败,并在每个日志的顶部显示此消息:
WARNING: We were unable to find a .travis.yml file. This may not be what you want. Build will be run with default settings.
Using worker: worker-linux-docker-71483f98.prod.travis-ci.org:travis-linux-6
Could not find .travis.yml, using standard configuration.
但是,我的存储库的根目录中肯定有一个 .travis.yaml 文件。以下是其内容:
$ cat .travis.yaml
language:
node_js
node_js:
stable
script:
node_modules/grunt-cli/bin/grunt
有些人似乎遇到过类似的问题,因为他们重命名了他们的存储库,但我从未更改过这个存储库的名称。其他人说它在几个小时后自行修复,但对我来说已经 5 天了,什么都没有改变。
Travis CI 文档中没有任何内容似乎表明我需要做的不仅仅是同步我的存储库,激活我想要 CI 的存储库,并包含一个 .travis.yaml 回购中的文件。我错过了什么吗?
您为 YAML 文件使用了错误的扩展名。
需要 .travis.yml
而不是 .travis.yaml
。