Integration test using jenkins with istanbul code coverage on angular

Posted: January 29, 2015 in web

On jenkins:

Build
Execute shell command:

npm cache clean
npm install
bower install –dev
grunt cibuild

num=$(cat coverage/PhantomJS\ 1.9.7\ \(Windows\ 7\)/index.html | grep ‘.’ | awk ‘FNR == 3 {print}’ | awk -F'[^0-9]*’ ‘$0=$2’)
if (( “$num” /dev/null 2>&1 &
while ! curl http://localhost:4444/wd/hub/status &>/dev/null; do :; done
grunt cie2e

Execute Windows command:
xcopy dist \\10.100.0.74\demo\ /s /i /Y

Clipboard

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s