updating to make CI filter for tests
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -22,4 +22,4 @@ jobs:
|
|||||||
go-version: 1.19
|
go-version: 1.19
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./pkg/...
|
run: go test -v -tags failingtests ./pkg/...
|
||||||
|
|||||||
@@ -223,6 +223,8 @@ const (
|
|||||||
Patch = %d
|
Patch = %d
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var CI = %s
|
||||||
|
|
||||||
// Version returns a pretty printed version information string.
|
// Version returns a pretty printed version information string.
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return fmt.Sprint(
|
return fmt.Sprint(
|
||||||
@@ -246,6 +248,7 @@ func Version() string {
|
|||||||
Major,
|
Major,
|
||||||
Minor,
|
Minor,
|
||||||
Patch,
|
Patch,
|
||||||
|
"false",
|
||||||
)
|
)
|
||||||
path := filepath.Join(PathBase, "version.go")
|
path := filepath.Join(PathBase, "version.go")
|
||||||
if e = os.WriteFile(path, []byte(versionFileOut), 0666); check(e) {
|
if e = os.WriteFile(path, []byte(versionFileOut), 0666); check(e) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//go:build failingtests
|
//go:build !failingtests
|
||||||
|
|
||||||
package engine
|
package engine
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//go:build failingtests
|
//go:build !failingtests
|
||||||
|
|
||||||
package headers
|
package headers
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//go:build failingtests
|
//go:build !failingtests
|
||||||
|
|
||||||
package hiddenservice
|
package hiddenservice
|
||||||
|
|
||||||
|
|||||||
17
version.go
17
version.go
@@ -1,6 +1,7 @@
|
|||||||
//go:build !local
|
//go:build !local
|
||||||
|
|
||||||
// This can be overridden by a developer's version by setting the tag local.
|
// This can be overridden by a developer's version by setting the tag local
|
||||||
|
// on a modified version. This is useful for the code locations in teh logs.
|
||||||
|
|
||||||
package indra
|
package indra
|
||||||
|
|
||||||
@@ -14,19 +15,23 @@ import "fmt"
|
|||||||
// which will run all these generators below and finish with a go install.
|
// which will run all these generators below and finish with a go install.
|
||||||
//go:generate go install ./...
|
//go:generate go install ./...
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// URL is the git URL for the repository.
|
// URL is the git URL for the repository.
|
||||||
URL = "github.com/indra-labs/indra"
|
URL = "github.com/indra-labs/indra"
|
||||||
// GitRef is the gitref, as in refs/heads/branchname.
|
// GitRef is the gitref, as in refs/heads/branchname.
|
||||||
GitRef = "refs/heads/master"
|
GitRef = "refs/heads/protocol"
|
||||||
// ParentGitCommit is the commit hash of the parent HEAD.
|
// ParentGitCommit is the commit hash of the parent HEAD.
|
||||||
ParentGitCommit = "654916462d717f2f521c3234d1044a3128140b90"
|
ParentGitCommit = "c67bd0ea723f4af6571e49b56291ac1d8cdc6eae"
|
||||||
// BuildTime stores the time when the current binary was built.
|
// BuildTime stores the time when the current binary was built.
|
||||||
BuildTime = "2023-05-18T12:39:10+01:00"
|
BuildTime = "2023-06-02T10:40:48+01:00"
|
||||||
// SemVer lists the (latest) git tag on the release.
|
// SemVer lists the (latest) git tag on the release.
|
||||||
SemVer = "v0.1.12"
|
SemVer = "v0.1.12"
|
||||||
// PathBase is the path base returned from runtime caller.
|
// PathBase is the path base returned from runtime caller.
|
||||||
PathBase = "/opt/indra-labs/indra/"
|
PathBase = "/home/loki/indra-labs/indra/"
|
||||||
// Major is the major number from the tag.
|
// Major is the major number from the tag.
|
||||||
Major = 0
|
Major = 0
|
||||||
// Minor is the minor number from the tag.
|
// Minor is the minor number from the tag.
|
||||||
@@ -35,6 +40,8 @@ const (
|
|||||||
Patch = 12
|
Patch = 12
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var CI = false
|
||||||
|
|
||||||
// Version returns a pretty printed version information string.
|
// Version returns a pretty printed version information string.
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return fmt.Sprint(
|
return fmt.Sprint(
|
||||||
|
|||||||
Reference in New Issue
Block a user