From 2dfdcbd86535accae4c2e2bb62ead554c190464d Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Sat, 20 Apr 2024 01:28:29 +0200 Subject: [PATCH] Remove travis Signed-off-by: Piotr Piotrowski --- .travis.yml | 36 ------------------------------------ nats_test.go | 2 +- scripts/cov.sh | 2 +- 3 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 63c5dc270..000000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -# language: go -# go: -# - "1.22.x" -# - "1.21.x" -# go_import_path: github.com/nats-io/nats.go -# install: -# - go get -t ./... -# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin -# - if [[ "$TRAVIS_GO_VERSION" =~ 1.22 ]]; then -# go install github.com/mattn/goveralls@latest; -# go install github.com/wadey/gocovmerge@latest; -# go install honnef.co/go/tools/cmd/staticcheck@latest; -# go install github.com/client9/misspell/cmd/misspell@latest; -# fi -# before_script: -# - $(exit $(go fmt ./... | wc -l)) -# - go vet -modfile=go_test.mod ./... -# - if [[ "$TRAVIS_GO_VERSION" =~ 1.22 ]]; then -# find . -type f -name "*.go" | xargs misspell -error -locale US; -# GOFLAGS="-mod=mod -modfile=go_test.mod" staticcheck ./...; -# fi -# - golangci-lint run ./jetstream/... -# script: -# - go test -modfile=go_test.mod -v -run=TestNoRace -p=1 ./... --failfast -vet=off -# - if [[ "$TRAVIS_GO_VERSION" =~ 1.22 ]]; then ./scripts/cov.sh TRAVIS; else go test -modfile=go_test.mod -race -v -p=1 ./... --failfast -vet=off -tags=internal_testing; fi -# after_success: -# - if [[ "$TRAVIS_GO_VERSION" =~ 1.22 ]]; then $HOME/gopath/bin/goveralls -coverprofile=acc.out -service travis-ci; fi - -# jobs: -# include: -# - name: "Go: 1.22.x (nats-server@main)" -# go: "1.22.x" -# before_script: -# - go get -modfile go_test.mod github.com/nats-io/nats-server/v2@main -# allow_failures: -# - name: "Go: 1.22.x (nats-server@main)" diff --git a/nats_test.go b/nats_test.go index 7dcdce2cf..7f7e71bce 100644 --- a/nats_test.go +++ b/nats_test.go @@ -94,7 +94,7 @@ func checkErrChannel(t *testing.T, errCh chan error) { } func TestVersionMatchesTag(t *testing.T) { - tag := os.Getenv("TRAVIS_TAG") + tag := os.Getenv("GITHUB_ACTIONS") if tag == "" { t.SkipNow() } diff --git a/scripts/cov.sh b/scripts/cov.sh index 80828cb16..5d3dcb908 100755 --- a/scripts/cov.sh +++ b/scripts/cov.sh @@ -12,7 +12,7 @@ gocovmerge ./cov/*.out > acc.out rm -rf ./cov # Without argument, launch browser results. We are going to push to coveralls only -# from Travis.yml and after success of the build (and result of pushing will not affect +# from ci.yml and after success of the build (and result of pushing will not affect # build result). if [[ $1 == "" ]]; then go tool cover -html=acc.out