forked from codecov/codecov-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (18 loc) · 771 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
REPORTER = spec
test:
@$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER) --recursive
lint:
./node_modules/.bin/jshint ./lib ./test ./index.js
deploy:
$(eval VERSION := $(shell cat package.json | grep '"version"' | cut -d\" -f4))
git tag v$(VERSION) -m ""
git push origin v$(VERSION)
npm publish
testsuite:
curl -X POST https://circleci.com/api/v1/project/codecov/testsuite/tree/master?circle-token=$(CIRCLE_TOKEN)\
--header "Content-Type: application/json"\
--data "{\"build_parameters\": {\"TEST_LANG\": \"node\",\
\"TEST_SLUG\": \"$(CIRCLE_PROJECT_USERNAME)/$(CIRCLE_PROJECT_REPONAME)\",\
\"TEST_SHA\": \"$(CIRCLE_SHA1)\"}}"
.PHONY: test