fossa.mk 594 B

12345678910111213141516
  1. # Variables for Fossa
  2. BUILD_ANALYZER?=docker/fossa-analyzer
  3. FOSSA_OPTS?=--option all-tags:true --option allow-unresolved:true
  4. fossa-analyze:
  5. docker run --rm -e FOSSA_API_KEY=$(FOSSA_API_KEY) \
  6. -v $(CURDIR)/$*:/go/src/github.com/docker/compose \
  7. -w /go/src/github.com/docker/compose \
  8. $(BUILD_ANALYZER) analyze ${FOSSA_OPTS} --branch ${BRANCH_NAME}
  9. # This command is used to run the fossa test command
  10. fossa-test:
  11. docker run -i -e FOSSA_API_KEY=$(FOSSA_API_KEY) \
  12. -v $(CURDIR)/$*:/go/src/github.com/docker/compose \
  13. -w /go/src/github.com/docker/compose \
  14. $(BUILD_ANALYZER) test