Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abtris/angular-todo-mongohq
- Owner: abtris
- Created: 2012-05-18T12:40:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T14:59:09.000Z (over 1 year ago)
- Last Synced: 2024-04-15T03:04:05.867Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.67 MB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 Pygmentsnpm 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 installphantomjs
---------
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/phantomjsnode.js
-------
download archive from: http://nodejs.org
unpack, compile and installcurl
----
yum install curlpygments - REQUIRED FOR docco!
-----------------------------
yum install pygmentsnpm, docco, coffee-script
-------------------------
curl http://npmjs.org/install.sh | shnpm 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 coberturajava -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)