ramitos/sift3

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
REPORTER = dot
UI = bdd
TESTS = test

test:
    @NODE_ENV=test ./node_modules/.bin/mocha -u $(UI) -R $(REPORTER) -c -G -b

lib-cov:
    ./node_modules/jscoverage/bin/jscoverage src lib-cov

test-cov:    lib-cov
    @SIFT3_COVERAGE=1 $(MAKE) test REPORTER=html-cov > coverage.html
    rm -rf lib-cov

test-coveralls:    lib-cov
    echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
    @SIFT3_COVERAGE=1 $(MAKE) test REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
    rm -rf lib-cov

docs:
    ronn -r --organization=Kordon man/afd.ronn
    ronn --html --organization=Kordon --style=toc doc/afd.md

.PHONY: test