From 66450b0ecd061ca4902f479c1b6441326a672455 Mon Sep 17 00:00:00 2001 From: John Guo Date: Sat, 4 Dec 2021 20:51:24 +0800 Subject: [PATCH] disable debugging internal logging content in github action --- .github/workflows/go.yml | 2 +- .travis.yml | 50 ---------------------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 781d0ff0c..29bcc1dd7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,7 +8,7 @@ on: pull_request: branches: [master, develop] env: - GF_DEBUG: 1 + GF_DEBUG: 0 jobs: code-test: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d11a3c960..000000000 --- a/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ -os: linux -arch: arm64-graviton2 - -language: go - -go: - - "1.14.x" - - "1.15.x" - - "1.16.x" - -branches: - only: - - master - - develop - - staging - -env: -- TZ=Asia/Shanghai GF_DEBUG=1 GO111MODULE=on - -services: -- mysql -- redis-server -- postgresql - -addons: - postgresql: "9.4" - hosts: - - local - -before_install: - - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' - -install: -- cat /etc/hosts - -before_script: -- find . -name "*.go" | xargs gofmt -w -- git diff --name-only --exit-code || exit 1 -- echo "UPDATE mysql.user SET authentication_string=PASSWORD('12345678') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root -- psql -c 'create database travis_ci_test;' -U postgres - -script: -- GOARCH=386 go test -v ./... || exit 1 -- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic - -after_success: -- bash <(curl -s https://codecov.io/bash) - - -