Skip to content

Commit

Permalink
.travis: skip cmd/geth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markya0616 committed Oct 18, 2023
1 parent 7c4b1ee commit 9d527b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- GO111MODULE=on
script:
- go run build/ci.go install
- travis_wait 30 go run build/ci.go test -coverage $TEST_PACKAGES
- travis_wait 30 go run build/ci.go test -coverage -skip cmd/geth
- stage: Docker Image Release
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin quay.io/amis
Expand Down
5 changes: 4 additions & 1 deletion build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ func doTest(cmdline []string) {
coverage = flag.Bool("coverage", false, "Whether to record code coverage")
verbose = flag.Bool("v", false, "Whether to log verbosely")
race = flag.Bool("race", false, "Execute the race detector")
skip = flag.String("skip", "", "skip test packages")
)
flag.CommandLine.Parse(cmdline)

Expand All @@ -292,7 +293,6 @@ func doTest(cmdline []string) {
tc.Root = build.DownloadGo(csdb, dlgoVersion)
}
gotest := tc.Go("test")

// Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load.
gotest.Args = append(gotest.Args, "-p", "1")
Expand All @@ -305,6 +305,9 @@ func doTest(cmdline []string) {
if *race {
gotest.Args = append(gotest.Args, "-race")
}
if skip != nil && *skip != "" {
gotest.Args = append(gotest.Args, "-skip", *skip)
}

packages := []string{"./..."}
if len(flag.CommandLine.Args()) > 0 {
Expand Down

0 comments on commit 9d527b6

Please sign in to comment.