本站源代码
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

45 行
998B

  1. language: go
  2. go:
  3. - 1.11.x
  4. - 1.12.x
  5. - master
  6. sudo: true
  7. env:
  8. global:
  9. - PGUSER=postgres
  10. - PQGOSSLTESTS=1
  11. - PQSSLCERTTEST_PATH=$PWD/certs
  12. - PGHOST=127.0.0.1
  13. matrix:
  14. - PGVERSION=10
  15. - PGVERSION=9.6
  16. - PGVERSION=9.5
  17. - PGVERSION=9.4
  18. before_install:
  19. - ./.travis.sh postgresql_uninstall
  20. - ./.travis.sh pgdg_repository
  21. - ./.travis.sh postgresql_install
  22. - ./.travis.sh postgresql_configure
  23. - ./.travis.sh client_configure
  24. - go get golang.org/x/tools/cmd/goimports
  25. - go get golang.org/x/lint/golint
  26. - GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@2019.2.1
  27. before_script:
  28. - createdb pqgotest
  29. - createuser -DRS pqgossltest
  30. - createuser -DRS pqgosslcert
  31. script:
  32. - >
  33. goimports -d -e $(find -name '*.go') | awk '{ print } END { exit NR == 0 ? 0 : 1 }'
  34. - go vet ./...
  35. - staticcheck -go 1.11 ./...
  36. - golint ./...
  37. - PQTEST_BINARY_PARAMETERS=no go test -race -v ./...
  38. - PQTEST_BINARY_PARAMETERS=yes go test -race -v ./...
上海开阖软件有限公司 沪ICP备12045867号-1