-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refined azure pipeline, and fixed various of compile errors (#271)
* 1. Move from dep to modules 2. Use golangci-lint instead of gometalinter 3. Fixed various of compilation errors 4. Remove the travis pipeline config file 5. Refined azure pipeline config * Stop using Makefile * Revert changes on test scripts * Refactor pipeline
- Loading branch information
1 parent
86c76a3
commit 13286d0
Showing
93 changed files
with
976 additions
and
1,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jobs: | ||
- job: | ||
pool: | ||
vmImage: 'Ubuntu 18.04' | ||
|
||
steps: | ||
- template: steps/init_workspace.yml | ||
- template: steps/linter_check.yml | ||
- template: steps/build_test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
steps: | ||
- script: go build -v $(go list ./...) | ||
displayName: 'Build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
steps: | ||
- script: | | ||
mkdir -p $GOPATH | ||
mkdir -p '$(GOPATH)/bin' | ||
shopt -s dotglob extglob | ||
echo '##vso[task.prependpath]$(GOROOT)/bin' | ||
echo '##vso[task.prependpath]$(GOPATH)/bin' | ||
displayName: 'Create Go Workspace' | ||
- script: | | ||
go version | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6 | ||
golangci-lint --version | ||
displayName: 'Install Dependencies' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
steps: | ||
- script: | | ||
golangci-lint run --timeout=30m --disable-all \ | ||
--enable=deadcode --enable=gocyclo --enable=golint \ | ||
--enable=varcheck --enable=structcheck --enable=maligned \ | ||
--enable=ineffassign --enable=interfacer --enable=unconvert \ | ||
--enable=goconst --enable=gosec ./... >&2 | ||
displayName: 'Linter Check' | ||
failOnStderr: true | ||
condition: succeededOrFailed() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.