Maintaining and improving scripts part004

From Training Material
Jump to navigation Jump to search

Continuous integration?⌘

First we need to install jenkins

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo apt-get install jenkins

Then go to localhost:8080 install plugins AnsiColor and TAP plugin

To create a simple project click new item

then Build a free-style software project

Input a title

Use Build triggers > Poll SCM to schedule tests (similar to cron)

Add a build event, execute shell, or batch for windows.

input mocha path/test.js --reporter xunit > mocha.xml

then add a post-build action, publish junit test result report, and input the name of the file mocha.xml