|
@ -17,8 +17,6 @@ variables: |
|
|
GOPATH: $(system.defaultWorkingDirectory)/gopath |
|
|
GOPATH: $(system.defaultWorkingDirectory)/gopath |
|
|
GOBIN: $(GOPATH)/bin |
|
|
GOBIN: $(GOPATH)/bin |
|
|
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' |
|
|
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' |
|
|
# TODO: Remove once it's enabled by default |
|
|
|
|
|
GO111MODULE: on |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
- job: crossPlatformTest |
|
|
- job: crossPlatformTest |
|
@ -29,7 +27,7 @@ jobs: |
|
|
imageName: ubuntu-16.04 |
|
|
imageName: ubuntu-16.04 |
|
|
gorootDir: /usr/local |
|
|
gorootDir: /usr/local |
|
|
mac: |
|
|
mac: |
|
|
imageName: macos-10.13 |
|
|
imageName: macos-10.14 |
|
|
gorootDir: /usr/local |
|
|
gorootDir: /usr/local |
|
|
windows: |
|
|
windows: |
|
|
imageName: windows-2019 |
|
|
imageName: windows-2019 |
|
@ -78,7 +76,7 @@ jobs: |
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' ) |
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' ) |
|
|
displayName: Install Go on Windows |
|
|
displayName: Install Go on Windows |
|
|
|
|
|
|
|
|
- bash: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.22.2 |
|
|
- bash: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6 |
|
|
displayName: Install golangci-lint |
|
|
displayName: Install golangci-lint |
|
|
|
|
|
|
|
|
- script: | |
|
|
- script: | |
|
@ -102,6 +100,10 @@ jobs: |
|
|
workingDirectory: '$(modulePath)' |
|
|
workingDirectory: '$(modulePath)' |
|
|
displayName: Get dependencies |
|
|
displayName: Get dependencies |
|
|
|
|
|
|
|
|
|
|
|
- bash: go build -v |
|
|
|
|
|
workingDirectory: '$(modulePath)/cmd/caddy' |
|
|
|
|
|
displayName: Build Caddy |
|
|
|
|
|
|
|
|
# its behavior is governed by .golangci.yml |
|
|
# its behavior is governed by .golangci.yml |
|
|
- script: | |
|
|
- script: | |
|
|
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml |
|
|
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml |
|
|