Skip to content

Instantly share code, notes, and snippets.

@bergquist
Last active January 3, 2016 16:29
Show Gist options
  • Save bergquist/8489691 to your computer and use it in GitHub Desktop.
Save bergquist/8489691 to your computer and use it in GitHub Desktop.
kraken ci
language: node_js
node_js:
- '0.10'
script: ./ci.sh
#run mocha like before
mocha
#install yeoman and create test folder to run the generator within
npm install -g yo
cd ..
mkdir test
#clone generator and link
git clone https://github.com/yeoman/generator.git
cd generator && npm link
cd ..
#link local kraken-generator
cd generator-kraken && npm link
#link local generator to yeoman
cd ../generator
npm link generator-kraken
cd ..
#move to folder where generator should be executed
cd test
#run kraken generator
yo kraken
#last command need parameters(name, author, requirejs) to execute. otherwise it will just hang around until the test timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment