Skip to content

Commit 12d0c5e

Browse files
authored
Use Go 1.14 on AppVeyor (#240)
1 parent 522a55c commit 12d0c5e

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

DEVELOPMENT.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ For example, suppose we have the the recommended versions.
3232
If a new feature is added to a new `3.91.6` release of src-cli and this change requires only features available in Sourcegraph `3.99`, then this feature should also be present in a new `3.85.8` release of src-cli. Because a Sourcegraph instance will automatically select the highest patch version, all non-breaking changes should increment only the patch version.
3333

3434
Note that if instead the recommended src-cli version for Sourcegraph `3.99` was `3.90.4` in the example above, there is no additional step required, and the new patch version of src-cli will be available to both Sourcegraph versions.
35+
36+
## AppVeyor builds
37+
38+
We use AppVeyor to test `src-cli` on Windows.
39+
40+
Configure the AppVeyor builds by editing the `appveyor.yml` file and logging in to AppVeyor and changing the settings there.
41+
42+
Login with your GitHub account, switch to the `sourcegraph` account and change the settings here: https://ci.appveyor.com/project/sourcegraph/src-cli/settings/environment

appveyor.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
version: "{build}"
22
clone_folder: c:\gopath\src\github.com\sourcegraph\src-cli
3+
34
environment:
5+
GOROOT: 'c:\go'
46
GOPATH: c:\gopath
7+
GOVERSION: 1.14
8+
PATH: '%GOPATH%\bin;%GOROOT%\bin;%PATH%'
9+
GO111MODULE: 'on'
10+
511
install:
6-
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
7-
- echo %PATH%
8-
- echo %GOPATH%
12+
# Install the specific Go version.
13+
- rmdir c:\go /s /q
14+
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
15+
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
916
- go version
1017
- go env
11-
- go get -t -v ./...
18+
1219
build_script:
13-
- go test -v ./...
20+
- go version
21+
- go get -v -t ./...
22+
23+
test_script:
24+
- go test ./...

0 commit comments

Comments
 (0)