Explorar o código

updating travis

zach rice %!s(int64=6) %!d(string=hai) anos
pai
achega
633e06a7c7
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      Makefile
  2. 2 1
      main.go

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ test:
 	go get golang.org/x/lint/golint
 	go fmt
 	golint
-	go test --race --cover -run=Test$
+	go test --race --cover github.com/zricethezav/gitleaks/src
 deploy:
 	@echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
 	docker build -f Dockerfile -t $(REPO):$(TAG) .

+ 2 - 1
main.go

@@ -10,7 +10,8 @@ import (
 func main() {
 	report, err := gitleaks.Run(gitleaks.ParseOpts())
 	if err != nil {
-		log.Fatal(err)
+		log.Error(err)
+		os.Exit(gitleaks.ErrExit)
 	}
 
 	if len(report.Leaks) != 0 {