]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
Makefile: add test target
authorSimon Ruderich <simon@ruderich.org>
Fri, 9 Apr 2021 05:27:51 +0000 (07:27 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 9 Apr 2021 05:28:26 +0000 (07:28 +0200)
Makefile
ci/run

index ddde397b2ce427b5995cce8933a426332b17aa36..152ec8a21927a82c6057a686ca84fc123f70bc3a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,12 @@ safcm:
        @# For proper permissions after initial clone with a strict umask
        cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null
 
+test:
+       go vet ./...
+       go test -race ./...
+
 clean:
        rm -rf remote/helpers/
        rm -f safcm
 
-.PHONY: all clean safcm
+.PHONY: all test clean safcm
diff --git a/ci/run b/ci/run
index e9cf0ff3f13ca0e2983c62326835389f6f3e765d..01ee682ba9d5934abf8672ad97a5d10b0a0e2540 100755 (executable)
--- a/ci/run
+++ b/ci/run
@@ -8,8 +8,7 @@ PATH=$HOME/go/bin:$PATH
 export PATH
 
 make
-go vet ./...
-go test -race ./...
+make test
 
 # Additional static checks only run in CI
 go get honnef.co/go/tools/cmd/staticcheck