Skip to content

Commit

Permalink
Add foss checks make target
Browse files Browse the repository at this point in the history
  • Loading branch information
lwr20 committed Dec 21, 2018
1 parent 0bd5976 commit 66610b1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
# Visit https://fossa.io to learn more

version: 1
cli:
server: https://app.fossa.io
fetcher: custom
project: https://github.com/projectcalico/typha.git
analyze:
modules:
- name: github.com/projectcalico/typha/check-licenses
type: go
target: github.com/projectcalico/typha/check-licenses
path: /go/src/github.com/projectcalico/typha/check-licenses
options:
allow-unresolved: true
- name: github.com/projectcalico/typha/cmd/calico-typha
type: go
target: github.com/projectcalico/typha/cmd/calico-typha
path: /go/src/github.com/projectcalico/typha/cmd/calico-typha
options:
allow-unresolved: true
- name: github.com/projectcalico/typha/cmd/typha-client
type: go
target: github.com/projectcalico/typha/cmd/typha-client
path: /go/src/github.com/projectcalico/typha/cmd/typha-client
options:
allow-unresolved: true
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@ check-licenses/dependency-licenses.txt: vendor/.up-to-date
$(DOCKER_RUN) $(CALICO_BUILD) sh -c 'licenses ./cmd/calico-typha > check-licenses/dependency-licenses.tmp && \
mv check-licenses/dependency-licenses.tmp check-licenses/dependency-licenses.txt'

foss-checks: vendor
@echo Running $@...
@docker run --rm -v $(CURDIR):/go/src/$(PACKAGE_NAME):rw \
-e LOCAL_USER_ID=$(LOCAL_USER_ID) \
-e FOSSA_API_KEY=$(FOSSA_API_KEY) \
-w /go/src/$(PACKAGE_NAME) \
$(CALICO_BUILD) /usr/local/bin/fossa

.PHONY: go-meta-linter
go-meta-linter: vendor/.up-to-date $(GENERATED_GO_FILES)
# Run staticcheck stand-alone since gometalinter runs concurrent copies, which
Expand Down

0 comments on commit 66610b1

Please sign in to comment.