diff --git a/Makefile b/Makefile index 44588f8..3f4cfb0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -VERSION := $(file < version) MACOS := go-test-report-darwin-v$(VERSION) LINUX := go-test-report-linux-v$(VERSION) WINDOWS := go-test-report-windows-v$(VERSION) @@ -8,7 +7,7 @@ MAC_DIR := release_builds/darwin-amd64/ WIN_DIR := release_builds/windows-amd64/ genbuild: gencode - go build -ldflags "-X main.version=$(VERSION)" + go build gencode: (cd embed_assets/;set -e;go build;./embed_assets) @@ -23,17 +22,17 @@ buildall: genbuild go mod verify echo "Linux 64bit" - GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/linux-amd64/ + GOOS=linux GOARCH=amd64 go build -o release_builds/linux-amd64/ (cd $(LIN_DIR); shasum -a 256 go-test-report | cut -d ' ' -f 1 > $(LINUX).sha256) (cd $(LIN_DIR); tar -czf $(LINUX).tgz go-test-report $(LINUX).sha256) echo "Darwin (MacOS) 64bit" - GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/darwin-amd64/ + GOOS=darwin GOARCH=amd64 go build -o release_builds/darwin-amd64/ (cd $(MAC_DIR); shasum -a 256 go-test-report | cut -d ' ' -f 1 > $(MACOS).sha256) (cd $(MAC_DIR); tar -czf $(MACOS).tgz go-test-report $(MACOS).sha256) echo "Windows 64bit" - GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/windows-amd64/ + GOOS=windows GOARCH=amd64 go build -o release_builds/windows-amd64/ (cd $(WIN_DIR); shasum -a 256 go-test-report.exe | cut -d ' ' -f 1 > $(WINDOWS).sha256) (cd $(WIN_DIR); zip -r $(WINDOWS).zip go-test-report.exe $(WINDOWS).sha256) diff --git a/README.md b/README.md index 51d66e3..9fbb626 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The HTML file generated by `go-test-report` is designed to provide an easy way t


- +

@@ -65,7 +65,7 @@ To view the tests in a particular test group, click on any of the test group ind


- +

@@ -188,4 +188,3 @@ $ gmake buildall - Add a GitHub Star - Suggest [new features, ideas and optimizations](https://github.com/vakenbolt/go-test-report/issues) - [Report issues](https://github.com/vakenbolt/go-test-report/issues) - diff --git a/main.go b/main.go index a70fabe..04bda5d 100644 --- a/main.go +++ b/main.go @@ -21,8 +21,6 @@ import ( "time" ) -var version string // value gets injected at build time (see Makefile) - type ( goTestOutputRow struct { Time string diff --git a/version b/version deleted file mode 100644 index 2003b63..0000000 --- a/version +++ /dev/null @@ -1 +0,0 @@ -0.9.2 diff --git a/version.go b/version.go new file mode 100644 index 0000000..31a676c --- /dev/null +++ b/version.go @@ -0,0 +1,3 @@ +package main + +const version = "0.9.2"