appveyor.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. version: "{build}"
  2. environment:
  3. matrix:
  4. - nodejs_version: "6"
  5. - nodejs_version: "8"
  6. - nodejs_version: "10"
  7. - nodejs_version: "12"
  8. branches:
  9. only:
  10. - master
  11. - /^maint\/.+/
  12. - /v\d+\.\d+\.\d+/
  13. install:
  14. - ps: Install-Product node $env:nodejs_version
  15. - npm install
  16. services:
  17. - mssql2017
  18. cache:
  19. - node_modules
  20. build: off
  21. before_test:
  22. - npm prune
  23. - sc config sqlbrowser start= auto
  24. - net start sqlbrowser
  25. - mkdir C:\Users\appveyor\.tedious
  26. - ps: >-
  27. Set-Content -Value $('{
  28. "config": {
  29. "server": "localhost",
  30. "authentication": {
  31. "type": "default",
  32. "options": {
  33. "userName": "sa",
  34. "password": "Password12!"
  35. }
  36. },
  37. "options": {
  38. "database": "master"
  39. }
  40. },
  41. "ntlm": {
  42. "server": "localhost",
  43. "authentication": {
  44. "type": "ntlm",
  45. "options": {
  46. "userName": "' + $env:username + '",
  47. "password": "' + [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", '') + '",
  48. "domain": "' + $env:computername + '"
  49. }
  50. },
  51. "options": {
  52. "database": "master"
  53. }
  54. }
  55. }') -Path C:\Users\appveyor\.tedious\test-connection.json
  56. test_script:
  57. - node --version
  58. - npm --version
  59. - cmd: |
  60. SET EXITVAL=0
  61. npm run-script test || SET EXITVAL=1
  62. SET TEDIOUS_TDS_VERSION=7_4
  63. npm run-script test-integration || SET EXITVAL=1
  64. SET TEDIOUS_TDS_VERSION=7_3_B
  65. npm run-script test-integration || SET EXITVAL=1
  66. SET TEDIOUS_TDS_VERSION=7_3_A
  67. npm run-script test-integration || SET EXITVAL=1
  68. SET TEDIOUS_TDS_VERSION=7_2
  69. npm run-script test-integration || SET EXITVAL=1
  70. SET TEDIOUS_TDS_VERSION=7_1
  71. npm run-script test-integration || SET EXITVAL=1
  72. EXIT /B %EXITVAL%