Testing with go

Install

Several Go versions are already preinstalled (see details). We only need to add GOPATH and clone our project in the right directory.

Building

Go supports both windows and linux environments.

Windows

# appveyor.yml
build: off

clone_folder: c:\gopath\src\github.com\$username\$project

environment:
  GOPATH: c:\gopath

stack: go 1.10

before_test:
  - go vet ./...

test_script:
  - go test ./...

Linux

# 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 ./...
Did you know that you can edit this page on GitHub and send us a Pull Request?