1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

Adding licence checker

This commit is contained in:
Tom Gallacher 2017-01-17 16:47:26 +00:00
parent 40613c8535
commit 0c0b2dd145
6 changed files with 23 additions and 2 deletions

View File

@ -3,8 +3,13 @@ check:
@yarn install --prefer-offline
-@./bin/setup
.PHONE: licence
licence:
./node_modules/.bin/license-to-fail ./licence.js
make licence-check
SUBDIRS := $(dir $(wildcard */Makefile))
TARGETS := install clean test test-ci lint lint-ci # whatever else, but must not contain '/'
TARGETS := install clean test test-ci lint lint-ci licence-check# whatever else, but must not contain '/'
# foo/.all bar/.all foo/.clean bar/.clean
SUBDIRS_TARGETS := \

View File

@ -48,3 +48,7 @@ lint:
lint-ci:
mkdir -p $(XUNIT_DIR)
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml
.PHONY: licence-check
licence-check:
../node_modules/.bin/license-to-fail ../licence.js

View File

@ -63,3 +63,7 @@ lint:
lint-ci:
mkdir -p $(XUNIT_DIR)
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml
.PHONY: licence-check
licence-check:
../node_modules/.bin/license-to-fail ../licence.js

View File

@ -31,3 +31,6 @@ lint:
.PHONY: lint-ci
lint-ci:
.PHONY: licence-check
lint-ci:

View File

@ -18,7 +18,8 @@
"prepush": "make test"
},
"dependencies": {
"husky": "^0.11.9"
"husky": "^0.11.9",
"license-to-fail": "^2.2.0"
},
"devDependencies": {
"tap-xunit": "^1.4.0"

View File

@ -69,3 +69,7 @@ lint-ci:
.PHONY: publish
publish:
docker build --build-arg NPM_TOKEN=${NPM_TOKEN} --build-arg CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM} -f Dockerfile.build .
.PHONY: licence-check
licence-check:
../node_modules/.bin/license-to-fail ../licence.js