You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appveyor.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: 1.0.{build}
  2. os: Windows Server 2012 R2
  3. clone_folder: c:\gopath\src\github.com\denisenkom\go-mssqldb
  4. environment:
  5. GOPATH: c:\gopath
  6. HOST: localhost
  7. SQLUSER: sa
  8. SQLPASSWORD: Password12!
  9. DATABASE: test
  10. GOVERSION: 110
  11. matrix:
  12. - GOVERSION: 18
  13. SQLINSTANCE: SQL2016
  14. - GOVERSION: 19
  15. SQLINSTANCE: SQL2016
  16. - GOVERSION: 110
  17. SQLINSTANCE: SQL2016
  18. - SQLINSTANCE: SQL2014
  19. - SQLINSTANCE: SQL2012SP1
  20. - SQLINSTANCE: SQL2008R2SP2
  21. install:
  22. - set GOROOT=c:\go%GOVERSION%
  23. - set PATH=%GOPATH%\bin;%GOROOT%\bin;%PATH%
  24. - go version
  25. - go env
  26. - go get -u cloud.google.com/go/civil
  27. build_script:
  28. - go build
  29. before_test:
  30. # setup SQL Server
  31. - ps: |
  32. $instanceName = $env:SQLINSTANCE
  33. Start-Service "MSSQL`$$instanceName"
  34. Start-Service "SQLBrowser"
  35. - sqlcmd -S "(local)\%SQLINSTANCE%" -Q "Use [master]; CREATE DATABASE test;"
  36. - sqlcmd -S "(local)\%SQLINSTANCE%" -h -1 -Q "set nocount on; Select @@version"
  37. - pip install codecov
  38. test_script:
  39. - go test -race -cpu 4 -coverprofile=coverage.txt -covermode=atomic
  40. - codecov -f coverage.txt