Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,73 @@ jobs:
include:
- stage: Format Checker
script: bash -x scripts/travis/formatChecker.sh
- arch: arm64
script: bash -x scripts/travis/formatChecker.sh
- stage: DeadCode Checker
script:
- go get -u github.com/tsenart/deadcode
- bash -x scripts/travis/deadCodeChecker.sh
- arch: arm64
script:
- go get -u github.com/tsenart/deadcode
- bash -x scripts/travis/deadCodeChecker.sh
- stage: Misspell Checker
script:
- go get -u github.com/client9/misspell
- bash -x scripts/travis/misspellChecker.sh
- arch: arm64
script:
- go get -u github.com/client9/misspell
- bash -x scripts/travis/misspellChecker.sh
- stage: GoConst Checker
script:
- go get -u github.com/jgautheron/goconst/cmd/goconst
- bash -x scripts/travis/goConstChecker.sh
- arch: arm64
script:
- go get -u github.com/jgautheron/goconst/cmd/goconst
- bash -x scripts/travis/goConstChecker.sh
- stage: GoLint Checker
script:
- go get -u golang.org/x/lint/golint
- bash -x scripts/travis/goLintChecker.sh
- arch: arm64
script:
- go get -u golang.org/x/lint/golint
- bash -x scripts/travis/goLintChecker.sh
- stage: GoCyclo Checker
script:
- go get github.com/fzipp/gocyclo
- bash -x scripts/travis/goCycloChecker.sh
- arch: arm64
script:
- go get github.com/fzipp/gocyclo
- bash -x scripts/travis/goCycloChecker.sh
- stage: GoSecure Checker
script:
- go get github.com/securego/gosec/cmd/gosec
- bash -x scripts/travis/goSecureChecker.sh
- arch: arm64
script:
- go get github.com/securego/gosec/cmd/gosec
- bash -x scripts/travis/goSecureChecker.sh
- stage: Build
script:
- GO111MODULE=on go mod download
- go build github.com/apache/servicecomb-mesher/cmd/mesher
- arch: arm64
script:
- GO111MODULE=on go mod download
- go build github.com/apache/servicecomb-mesher/cmd/mesher
- stage: Unit Test
script:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- GO111MODULE=on go mod download
- bash -x scripts/travis/unit_test.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci

- arch: arm64
script:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- GO111MODULE=on go mod download
- bash -x scripts/travis/unit_test.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci