summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2020-02-27 03:51:54 +0300
committerGitHub <[email protected]>2020-02-27 03:51:54 +0300
commit6fb98ba1880d5f3f6ede4f407b0c9f80f7c7daa6 (patch)
tree810c458c0554a823d90bcf5f3082464dce0a4199
parent063ed1e7f91b578c705147cb411d076865195174 (diff)
downloadcaddy-6fb98ba1880d5f3f6ede4f407b0c9f80f7c7daa6.tar.gz
caddy-6fb98ba1880d5f3f6ede4f407b0c9f80f7c7daa6.zip
ci: improve CI flow (#3083)
* ci: update golangci-lint * ci: build Caddy to catch build error * ci: remove GO111MODULE env var * ci: update MacOS image
-rw-r--r--azure-pipelines.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index d1dfb6b72..808a532ac 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -17,8 +17,6 @@ variables:
GOPATH: $(system.defaultWorkingDirectory)/gopath
GOBIN: $(GOPATH)/bin
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
- # TODO: Remove once it's enabled by default
- GO111MODULE: on
jobs:
- job: crossPlatformTest
@@ -29,7 +27,7 @@ jobs:
imageName: ubuntu-16.04
gorootDir: /usr/local
mac:
- imageName: macos-10.13
+ imageName: macos-10.14
gorootDir: /usr/local
windows:
imageName: windows-2019
@@ -78,7 +76,7 @@ jobs:
condition: eq( variables['Agent.OS'], 'Windows_NT' )
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
- script: |
@@ -102,6 +100,10 @@ jobs:
workingDirectory: '$(modulePath)'
displayName: Get dependencies
+ - bash: go build -v
+ workingDirectory: '$(modulePath)/cmd/caddy'
+ displayName: Build Caddy
+
# its behavior is governed by .golangci.yml
- script: |
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml