Several Go versions are already preinstalled:
We only need to add GOPATH and clone our project in the right directory.
Go supports both windows and linux environments.
# appveyor.yml
build: off
clone_folder: c:\gopath\src\github.com\$username\$project
environment:
GOPATH: c:\gopath
before_test:
- set PATH=C:\go116\bin;%PATH%
- set GOROOT=C:\go116
- go vet ./...
test_script:
- go test ./...
# appveyor.yml
build: off
clone_folder: /usr/go/src/github.com/$username/$project
environment:
GOPATH: /usr/go/
stack: go 1.10
before_test:
- go vet ./...
test_script:
- go test ./...