mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-18 01:41:19 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
53c059c091
|
@@ -1,4 +1,10 @@
|
|||||||
LOCAL_VERSION?=$(shell semver-gen generate -l -c config-release.yaml | sed -e 's|SEMVER ||g')
|
LOCAL_VERSION?=$(shell semver-gen generate -l -c config-release.yaml | sed -e 's|SEMVER ||g')
|
||||||
|
CI_RUN?=false
|
||||||
|
ADDITIONAL_BUILD_FLAGS=""
|
||||||
|
|
||||||
|
ifeq ($(CI_RUN), true)
|
||||||
|
ADDITIONAL_BUILD_FLAGS="-test.short"
|
||||||
|
endif
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
@@ -9,7 +15,7 @@ run: build
|
|||||||
@./semver-gen
|
@./semver-gen
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test ./... -v -race -cover -coverprofile=coverage.out
|
@go test ./... $(ADDITIONAL_BUILD_FLAGS) -v -race -cover -coverprofile=coverage.out
|
||||||
|
|
||||||
update:
|
update:
|
||||||
@go get -u ./...
|
@go get -u ./...
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ func Test_checkLatestRelease(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_updatePackage(t *testing.T) {
|
func Test_updatePackage(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("Skipping test in short / CI mode")
|
||||||
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
want bool
|
want bool
|
||||||
|
|||||||
Reference in New Issue
Block a user