本站源代码
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.

52 lines
1.4KB

  1. version: '{build}'
  2. clone_folder: C:\GOPATH\src\gopkg.in\testfixtures.v2
  3. build: false
  4. deploy: false
  5. services:
  6. - postgresql96
  7. - mysql
  8. - mssql2017
  9. environment:
  10. POSTGRES_PATH: C:\Program Files\PostgreSQL\9.6
  11. PGUSER: postgres
  12. PGPASSWORD: Password12!
  13. PG_CONN_STRING: 'user=postgres password=Password12! dbname=testfixtures_test sslmode=disable'
  14. MYSQL_PATH: C:\Program Files\MySql\MySQL Server 5.7
  15. MYSQL_PWD: Password12!
  16. MYSQL_CONN_STRING: 'root:Password12!@/testfixtures_test?multiStatements=true'
  17. SQLITE_CONN_STRING: 'testdb.sqlite3'
  18. SQLSERVER_CONN_STRING: 'server=localhost;database=testfixtures_test;user id=sa;password=Password12!;encrypt=disable'
  19. MINGW_PATH: C:\MinGW
  20. GOPATH: C:\GOPATH
  21. GOVERSION: 1.10.3
  22. install:
  23. - SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%MINGW_PATH%\bin;%PATH%
  24. - rmdir C:\go /s /q
  25. - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-386.msi
  26. - msiexec /i go%GOVERSION%.windows-386.msi /q
  27. - go version
  28. build_script:
  29. - createdb testfixtures_test
  30. - mysql -e "CREATE DATABASE testfixtures_test;" --user=root
  31. - sqlcmd -S localhost,1433 -U sa -P Password12! -Q "CREATE DATABASE testfixtures_test" -d "master"
  32. test_script:
  33. - go get -t -tags "sqlite postgresql mysql sqlserver" ./...
  34. - go install -v ./...
  35. - go test -v -tags postgresql
  36. - go test -v -tags mysql
  37. - go test -v -tags sqlserver
  38. - go test -v -tags sqlite
上海开阖软件有限公司 沪ICP备12045867号-1