mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 00:27:06 +00:00
refactor: dedicated constants package, no explicit bridge version
This commit is contained in:
committed by
Jakub Cuth
parent
522cadb8b1
commit
0589f329e9
@ -1,9 +1,9 @@
|
|||||||
.PHONY: check-has-go install-godog test test-live test-debug test-live-debug
|
.PHONY: check-has-go install-godog test test-live test-debug test-live-debug
|
||||||
|
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
|
export BRIDGE_VERSION:=dev-integrationtests
|
||||||
export VERBOSITY?=fatal
|
export VERBOSITY?=fatal
|
||||||
export TEST_DATA=testdata
|
export TEST_DATA=testdata
|
||||||
export VERSION:=dev-integrationtests
|
|
||||||
|
|
||||||
check-has-go:
|
check-has-go:
|
||||||
@which go || (echo "Install Go-lang!" && exit 1)
|
@which go || (echo "Install Go-lang!" && exit 1)
|
||||||
|
|||||||
@ -36,7 +36,7 @@ func init() { //nolint[gochecknoinits]
|
|||||||
godog.BindFlags("godog.", flag.CommandLine, &opt)
|
godog.BindFlags("godog.", flag.CommandLine, &opt)
|
||||||
|
|
||||||
// This would normally be done using ldflags but `godog` command doesn't support that.
|
// This would normally be done using ldflags but `godog` command doesn't support that.
|
||||||
constants.Version = os.Getenv("VERSION")
|
constants.Version = os.Getenv("BRIDGE_VERSION")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
|
|||||||
Reference in New Issue
Block a user