Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
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
Mohammed Al Sahaf committed
Feb 27, 2020 at 03:51 UTC
6fb98ba1880d5f3f6ede4f407b0c9f80f7c7daa6
1 file changed
+6
-4
azure-pipelines.yml
+6
-4
@@ -17,8 +17,6 @@ variables:
17
GOPATH: $(system.defaultWorkingDirectory)/gopath
18
GOBIN: $(GOPATH)/bin
19
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
20
- # TODO: Remove once it's enabled by default
21
- GO111MODULE: on
20
21
jobs:
22
- job: crossPlatformTest
@@ -29,7 +27,7 @@ jobs:
27
imageName: ubuntu-16.04
28
gorootDir: /usr/local
29
mac:
32
- imageName: macos-10.13
30
+ imageName: macos-10.14
31
gorootDir: /usr/local
32
windows:
33
imageName: windows-2019
@@ -78,7 +76,7 @@ jobs:
76
condition: eq( variables['Agent.OS'], 'Windows_NT' )
77
displayName: Install Go on Windows
78
81
- - bash: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.22.2
79
+ - bash: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
80
displayName: Install golangci-lint
81
82
- script: |
@@ -102,6 +100,10 @@ jobs:
100
workingDirectory: '$(modulePath)'
101
displayName: Get dependencies
102
103
+ - bash: go build -v
104
+ workingDirectory: '$(modulePath)/cmd/caddy'
105
+ displayName: Build Caddy
106
+
107
# its behavior is governed by .golangci.yml
108
- script: |
109
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml