diff --git a/.travis.yml b/.travis.yml index 1b3a393..7ce6089 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,6 @@ node_js: - "0.10" before_install: - sudo apt-get update -qq +after_success: + - ./node_modules/.bin/istanbul cover -x "**/spec/**" ./node_modules/.bin/_mocha --report lcovonly -- $(find spec -name '*-spec.js') -R spec --require spec/helper.js + - cat ./coverage/lcov.info | node_modules/.bin/coveralls diff --git a/README.md b/README.md index eec2da5..f2247de 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ +# on-dhcp-proxy [![Build Status](https://travis-ci.org/RackHD/on-dhcp-proxy.svg?branch=master)](https://travis-ci.org/RackHD/on-dhcp-proxy) [![Code Climate](https://codeclimate.com/github/RackHD/on-dhcp-proxy/badges/gpa.svg)](https://codeclimate.com/github/RackHD/on-dhcp-proxy) [![Coverage Status](https://coveralls.io/repos/RackHD/on-dhcp-proxy/badge.svg?branch=master&service=github)](https://coveralls.io/github/RackHD/on-dhcp-proxy?branch=master) + +`on-dhcp-proxy` provides a DHCP proxy service for enabling the RackHD PXE workflow engine to operate with an existing DHCP server. + Copyright 2015, EMC, Inc. -Setup -====== +# Setup -To run on-dhcp-proxy as a standalone DHCP server, it requires isc-dhcp-server to be +To run on-dhcp-proxy as a standalone service, it requires isc-dhcp-server to be running in the background. To install isc, run `sudo apt-get install isc-dhcp-server`, or on OSX, `brew install isc-dhcp` @@ -48,3 +51,11 @@ To stop isc-dhcp-server: `$ sudo killall dhcpd` Lease information is stored in /var/lib/dhcp/dhcpd.leases on linux, and /var/db/dhcpd.leases on OSX. + +## CI/testing + +The unit tests can be run with standard node tools: + + npm test + +`./HWIMO-TEST` will run local tests, and was built for running on a jenkins build slave, and will run the tests, jshint, and code coverage all together.