generator-travis-ci
generator-travis-ci copied to clipboard
Yeoman generator for travis-ci setup [available for Yeoman >= 1.0 beta]
generator-travis-ci
Installation
npm install -g generator-travis-ci
Usage
yo travis-ci
Requirements
####Yeoman
Beta version 1.0 and hopefully all future versions.
####GitHub Travis is deeply integrated with github, and in order to set all the travis hooks for you, this generator must be run on project hosted on github. Your git remotes should looks something like this:
git remote -v
origin [email protected]:pwmckenna/generator-travis-ci.git (fetch)
origin [email protected]:pwmckenna/generator-travis-ci.git (push)
Sub-Generators:
default generator
Sets up travis-ci.org to track your project and creates a basic .travis.yml that runs
grunton each commit.
You can then display your projects build/test status in your README or elsewhere using a travis badge like above.
Usage: yo travis-ci:default
gh-pages generator
An automated alternative to https://github.com/yeoman/yeoman/wiki/Deployment. Aims to make yeoman sites work similar to jekyll sites on github pages. Commit the raw files into master and what is served via gh-pages is
grunt buildoutput. For user & organization pages, you specify the branch you'd like to develop in, and the output is pushed to master.
Creates a .travis.yml file that tells travis-ci to build the yeoman project in your master branch after every commit and push the built site into your project's gh-pages branch.
Usage: yo travis-ci:gh-pages
Suggestions?
If you have suggestions for common yeoman/grunt testing/deployment tasks that could be handled best by a continuous integration service, make a pull request or shoot me a message!
