container:
  dockerfile: Dockerfile

env:
  GOPROXY: https://proxy.golang.org
  GO111MODULE: on

test_task:
  modules_cache:
    fingerprint_script: cat go.sum
    folder: $GOPATH/pkg/mod
  build_script: go build -v ./...
  test_script: go test -p 1 -v ./...

lint_task:
  env:
    matrix:
      - GOOS: linux
      - GOOS: windows
  lint_script:
    golangci-lint run ./tpmutil/... ./tpm2/...
