This commit is contained in:
@@ -17,7 +17,7 @@ steps:
|
|||||||
- SOURCE_VERSION="$(sed -nE 's/^(const|var) Version = \"([^\"]+)\"/\\2/p' xteve.go | head -n1)"
|
- SOURCE_VERSION="$(sed -nE 's/^(const|var) Version = \"([^\"]+)\"/\\2/p' xteve.go | head -n1)"
|
||||||
- test -n "${XTEVE_VERSION}" || (echo "Could not parse version from changelog-beta.md" && exit 1)
|
- test -n "${XTEVE_VERSION}" || (echo "Could not parse version from changelog-beta.md" && exit 1)
|
||||||
- test -n "${SOURCE_VERSION}" || (echo "Could not parse source version from xteve.go" && exit 1)
|
- test -n "${SOURCE_VERSION}" || (echo "Could not parse source version from xteve.go" && exit 1)
|
||||||
- test "${SOURCE_VERSION}" = "${XTEVE_VERSION}" || (echo "Version mismatch: changelog=${XTEVE_VERSION} source=${SOURCE_VERSION}" && exit 1)
|
- 'test "${SOURCE_VERSION}" = "${XTEVE_VERSION}" || (echo "Version mismatch: changelog=${XTEVE_VERSION} source=${SOURCE_VERSION}" && exit 1)'
|
||||||
- echo "Building xTeVe version ${XTEVE_VERSION} from changelog-beta.md"
|
- echo "Building xTeVe version ${XTEVE_VERSION} from changelog-beta.md"
|
||||||
- go build -v -ldflags "-X main.Version=${XTEVE_VERSION}" ./...
|
- go build -v -ldflags "-X main.Version=${XTEVE_VERSION}" ./...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user