Created
December 6, 2011 21:25
-
-
Save jmar777/1440075 to your computer and use it in GitHub Desktop.
Broken Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: clean install test test-tap test-api | |
clean: | |
rm ./test/results.tap | |
install: | |
npm install | |
test: | |
mocha -R list | |
test-tap: | |
mocha -R tap > ./test/results.tap | |
test-api: | |
NODE_ENV='test-api' node app.js & | |
PID=$! | |
mocha -R list ./test-api/rest-api.js | |
kill $PID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make test-api | |
NODE_ENV='test-api' node app.js & | |
PID= | |
mocha -R list ./test-api/rest-api.js | |
kill ID | |
kill: illegal process id: ID | |
make: *** [test-api] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment