diff --git a/.travis.yml b/.travis.yml index 46f134ddd2..c7f436e076 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/build/ci.go b/build/ci.go index 8dbd1dfd37..166bd50745 100644 --- a/build/ci.go +++ b/build/ci.go @@ -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) @@ -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") @@ -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 {