Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Add uber-license tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua T Corbin committed May 19, 2016
1 parent 24807fe commit f3628a5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@ lint:

test: lint
go test $$(glide novendor)

vendor: glide.lock
glide install

vendor/github.com/uber/uber-licence/package.json: vendor

vendor/github.com/uber/uber-licence/node_modules: vendor/github.com/uber/uber-licence/package.json
cd vendor/github.com/uber/uber-licence && npm install

.PHONY: check-license add-license

check-license: vendor/github.com/uber/uber-licence/node_modules
./vendor/github.com/uber/uber-licence/bin/licence --dry --file '*.go'

add-license: vendor/github.com/uber/uber-licence/node_modules
./vendor/github.com/uber/uber-licence/bin/licence --verbose --file '*.go'
4 changes: 2 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ import:
- package: github.com/stretchr/testify
subpackages:
- assert
devImports:
- package: github.com/uber/uber-licence

0 comments on commit f3628a5

Please sign in to comment.