Grunticon 和 TravisCI

Grunticon & TravisCI

当 Grunticon 安装到 TravisCI 上的 Rails 4 引擎时,我们 运行 遇到了一个问题。如果有任何想法,我将不胜感激:

Travis 的错误:

    Gem::Package::TooLongFileName: File "node_modules/grunt-grunticon/node_modules/grunticon-lib/node_modules/directory-colorfy/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile" has a too long path (should be 256 or less)
    An error occurred while installing trusty-convoy-extension (0.0.3), and Bundler
    cannot continue.

    Make sure that `gem install trusty-convoy-extension -v '0.0.3'` succeeds before
    bundling.

    The command "eval bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}" failed. Retrying, 2 of 3.

Grunticon 使用 Gruntfile.js 安装在我们的根目录中。这会触发 node_modules 目录中的脚本。我们遵循了这个指南:https://github.com/filamentgroup/grunticon

谢谢!

更新:在 TravisCI 上成功安装了 npm 3。

before_install:
  - npm install -g npm@3.x-latest

遗憾的是,没有解决这个问题。

在您的 Travis 预安装中..

npm i -g npm@3

Npm 3 处于后期测试阶段,将为您提供更加扁平的目录结构。

注意:您需要将任何对等依赖项添加到您的 package.json