Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abtris/angular-todo-mongohq

AngularJS, MongoHQ, Coffeescript, Junit, Cobertura, PhantomJS, Jenkins
https://github.com/abtris/angular-todo-mongohq

Last synced: about 1 month ago
JSON representation

AngularJS, MongoHQ, Coffeescript, Junit, Cobertura, PhantomJS, Jenkins

Awesome Lists containing this project

README

        

# CI - with Jenkins

Using [Jenkins](http://jenkins-ci.org/) for continues integration with javascript. In jenkins you should install plugins for git, cobertura (code coverage), html publisher (for docco documentation).

## Mac OS X

For Jenkins you need Java and [Ant](http://ant.apache.org/). Ant can be replaced by make, rake, cake or another builder. In this example I'm using ant.

brew install jsdoc-toolkit jscoverage phantomjs node curl

curl http://npmjs.org/install.sh | sh

easy_install Pygments

npm install -g docco coffee-script

## Linux

jsdoc-toolkit
-------------
download zip archive from: http://code.google.com/p/jsdoc-toolkit/downloads/list
unpack
move or copy to /usr/local/bin/

jscoverage
----------
download preferred archive from: http://siliconforks.com/jscoverage/download.html
unpack, compile and install

phantomjs
---------
download preferred archive from: http://code.google.com/p/phantomjs/downloads/list
unpack to selected destination
link to /usr/local/bin: ln -s /path/to/download/bin/phantomjs /usr/local/bin/phantomjs

node.js
-------
download archive from: http://nodejs.org
unpack, compile and install

curl
----
yum install curl

pygments - REQUIRED FOR docco!
-----------------------------
yum install pygments

npm, docco, coffee-script
-------------------------
curl http://npmjs.org/install.sh | sh

npm install -g docco coffee-script

## Jenkins plugin install via jenkins-cli

wget http://localhost:8080/jnlpJars/jenkins-cli.jar

java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin htmlpublisher
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin cobertura

java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin git
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin greenballs
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin jobConfigHistory
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin build-pipeline-plugin
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin configurationslicing

java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart

## Javascript - AngularJS

We using [AngularJS](http://angularjs.org/) and write unit tests in [Jasmine](http://pivotal.github.com/jasmine/).

Example aplication ToDo App with [MongoHQ](https://mongohq.com) backend, integration via proxy.php




































## Ant script update for Linux:

There's only one change - jsdoc needs to be called different way:













## Jenkins

![jenkins](https://github.com/abtris/angular-todo-mongohq/raw/master/docs/angular-todo-mongohq.jpg)

### Jenkins configuration

![jenkins](https://github.com/abtris/angular-todo-mongohq/raw/master/docs/angular-todo-mongohq-configuration.jpg)