wet-boew / wet-boew-styleguide

A style guide for the Web Experience Toolkit.
http://wet-boew.github.io/wet-boew-styleguide/index-en.html
36 stars 32 forks source link

Travis build keeps failing #144

Closed pjackson28 closed 10 years ago

pjackson28 commented 10 years ago

@nschonni @LaurentGoderre The Travis build keeps failing at the same place. The main issue seems to be it can't find assets-dist. As a result the style guide site is not being updated with recent changes.

>> /home/travis/build/wet-boew/wet-boew-styleguide/lib/wet-boew/Gruntfile.coffee:

Warning: Task "assets-dist" not found. Use --force to continue.

Aborted due to warnings.

Execution Time (2014-05-30 19:34:19 UTC)

loading tasks 9ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 90%

Total 10ms

Warning: Task "hub:wet-boew" failed. Use --force to continue.

Aborted due to warnings.

The command "./script/travis.sh" exited with 3.

Done. Your build exited with 1.
LaurentGoderre commented 10 years ago

Yeah, it was renamed to asset_min on it

EricDunsworth commented 10 years ago

Is it just me or does the build still seem to be failing (at least Travis-CI)?

Link: https://travis-ci.org/wet-boew/wet-boew-styleguide

LaurentGoderre commented 10 years ago

This one should do it

EricDunsworth commented 10 years ago

@LaurentGoderre Thanks :)! Looks like it's working now.

sviens commented 10 years ago

I'm getting the following grunt build error and I was thinking it might be related (if not, I'll open a new issue). Any help would be appreciated!

Running "clean:dist" (clean) task

Running "hub:wet-boew" (hub) task
>> Running [build,assets-min,i18n_csv:assemble,pages:ajax:min] on /Users/wet-boew/web-projects/@github/wet-boew-styleguide/lib/wet-boew/Gruntfile.coffee

>> /Users/wet-boew/web-projects/@github/wet-boew-styleguide/lib/wet-boew/Gruntfile.coffee:

Loading "Gruntfile.coffee" tasks...ERROR
>> Error: Unable to read "lib/jquery/bower.json" file (Error code: ENOENT).
Warning: Task "i18n_csv:assemble" not found. Use --force to continue.

Aborted due to warnings.
Warning: Task "hub:wet-boew" failed. Use --force to continue.

Aborted due to warnings.
LaurentGoderre commented 10 years ago

It doesn't seem to be broken on Travis

sviens commented 10 years ago

I must be missing a key part of the build process then. Would you mind pointing me to some info on building the styleguide locally? I was hoping to help with some outstanding issues, but I can't get a local build running.

LaurentGoderre commented 10 years ago

run script/bootstrap.sh then try again

sviens commented 10 years ago

I re-forked, cleared bower/npm caches and ran script/bootstrap.sh again. After running grunt, I still get the same error:

Running "clean:dist" (clean) task

Running "hub:wet-boew" (hub) task
>> Running [build,assets-min,i18n_csv:assemble,pages:ajax:min] on /Users/wet-boew/web-projects/wxt/wet-boew-styleguide/lib/wet-boew/Gruntfile.coffee

>> /Users/wet-boew/web-projects/wxt/wet-boew-styleguide/lib/wet-boew/Gruntfile.coffee:

Loading "Gruntfile.coffee" tasks...ERROR
>> Error: Unable to read "lib/jquery/bower.json" file (Error code: ENOENT).
Warning: Task "i18n_csv:assemble" not found. Use --force to continue.

Aborted due to warnings.
Warning: Task "hub:wet-boew" failed. Use --force to continue.

Aborted due to warnings.
LaurentGoderre commented 10 years ago

you can try

cd lib/wet-boew
npm install
cd ../../
grunt
sviens commented 10 years ago

That did the trick (almost)! I had to run bower update && grunt init separately after npm install, but grunt finally built out the project. Many thanks!

joshdevries commented 10 years ago

I'm not sure if this is the right place to put all of this, but I had a lot of issues, getting everything setup, so maybe these can help someone else.

I kept having an error where npm wouldn't recognize that nodejs was installed on my system. I used the command 'which nodejs' and got: /usr/bin/nodejs

HOWEVER, npm was looking for /usr/bin/node, so i had to make a symbolic link, which solved that first issue: sudo ln -s /usr/bin/nodejs /usr/bin/node

I then kept on recieving the following error: npm WARN cannot run in wd wet-boew@4.0.4 bower update && grunt init (wd=/home/me/Downloads/wet-boew-4.0.4)

I got around this error by using the following command: npm install --unsafe-perm

HOWEVER, I then got the following error, which i solved by changing the owner of configstore from root to myself:

Error: EACCES, permission denied '/home/me/.config/configstore/insight-bower.yml' You don't have access to this file. at Object.fs.openSync (evalmachine.:432:18) at Object.fs.writeFileSync (evalmachine.:971:15) at Object.create.all.set (/usr/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:63:8) at Object.Configstore (/usr/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:26:11) at new Insight (/usr/lib/node_modules/bower/node_modules/insight/lib/insight.js:26:34) at Object.setup (/usr/lib/node_modules/bower/lib/util/analytics.js:18:19) at Object. (/usr/lib/node_modules/bower/bin/bower:72:11) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) npm ERR! weird error 8 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

As i said, not sure if this is the right place but if it can help someone here it is.

joshdevries commented 10 years ago

New issue, I cannot user script/setup as i get the same error as before: npm WARN cannot run in wd wet-boew@4.0.4 bower update && grunt init (wd=/home/me/Downloads/wet-boew-4.0.4)

I had to use bower update && grunt init on the command line in order to make it work.

nschonni commented 10 years ago

@joshdevries check out the discussion in https://github.com/wet-boew/wet-boew/issues/5887