@@ -7,15 +7,10 @@ max_jobs: 1
77environment :
88 access_token :
99 secure : ' E5I+i+CQyj9EHusDrPSQKHRXmzmpTujYAoFxlvJjvSRSEQHHzqTBIFR1VuPbwLMi'
10+ AZURE_SQL_PASS :
11+ secure : ' rYm3nE1kwpbdE7QtyLb8CjvA1ENjY3usz3Qqskf1TXU='
1012
1113 APPVEYOR_RDP_PASSWORD : Np^VNSzJI5#OmRdUNqro2T9UVkCdZ
12- MSSQL_LOGIN : sa
13- MSSQL_PASS : Password12!
14- TSQLTSETCLR : tests\tSQLt\SetClrEnabled.sql
15- TSQLTCREATEDB : tests\tSQLt\CreateDatabase.sql
16- TSQLTINSTALL : tests\tSQLt\tSQLt.class.sql
17- TSQLTBUILDPATH : tests\build
18- TSQLTTESTPATH : tests\run
1914 TARGET_DB : tSQLt
2015 COV_REPORT : appveyor\sqlcover\Coverage.opencoverxml
2116
@@ -25,64 +20,80 @@ environment:
2520 DB_INSTANCE : (local)\SQL2019
2621 LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_150
2722 LATEST : True
23+
24+ # Azure SQL Env
25+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
26+ MSSQL : AZURESQL
27+ LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_150
28+ TARGET_DB : expresssql
29+ DB_INSTANCE : expresssql.database.windows.net
30+ LATEST : False
31+ COV_REPORT : appveyor\sqlcover\Coverage_azuresql.opencoverxml
32+ AZURE_SQL_USER : lowlysa
33+ AzureSQL : True
2834
2935 - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
3036 MSSQL : SQL2017
3137 DB_INSTANCE : (local)\SQL2017
3238 LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_140
39+ LATEST : False
40+ AzureSQL : False
3341
3442 - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
3543 MSSQL : SQL2016
3644 DB_INSTANCE : (local)\SQL2016
3745 LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_130
46+ LATEST : False
47+ AzureSQL : False
3848
3949 - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
4050 MSSQL : SQL2014
4151 DB_INSTANCE : (local)\SQL2014
4252 LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_120
53+ LATEST : False
54+ AzureSQL : False
4355
4456 - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
4557 MSSQL : SQL2012SP1
4658 DB_INSTANCE : (local)\SQL2012SP1
4759 LINT_CONFIG : appveyor\tsqllint\.tsqllintrc_110
60+ LATEST : False
61+ AzureSQL : False
4862
4963clone_script :
50- - git config --global credential.helper store
51- -
ps :
Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected] `n" -NoNewLine 52- -
git config --global user.email "[email protected] " 53- - git config --global user.name "Appveyor"
54- - git config --global core.safecrlf false
55- - git clone -q --single-branch --branch=%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH% https://github.com/LowlyDBA/ExpressSQL.git %APPVEYOR_BUILD_FOLDER%
56- - cd %APPVEYOR_BUILD_FOLDER%
64+ - git config --global credential.helper store
65+ -
ps :
Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected] `n" -NoNewLine 66+ -
git config --global user.email "[email protected] " 67+ - git config --global user.name "Appveyor"
68+ - git config --global core.safecrlf false
69+ - git clone -q --single-branch --branch=%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH% https://github.com/LowlyDBA/ExpressSQL.git %APPVEYOR_BUILD_FOLDER%
70+ - cd %APPVEYOR_BUILD_FOLDER%
5771
5872install :
59- - ps : Install-Module SqlServer -Force -AllowClobber
60- - npm install tsqllint -g
61- - ps : .\appveyor\start_sqlserver.ps1
62- - ps : .\appveyor\install_tsqlt.ps1
73+ - ps : .\appveyor\install_dependencies.ps1
74+ - ps : .\appveyor\start_sqlserver.ps1
75+ - ps : .\appveyor\install_tsqlt.ps1
6376
6477build_script :
65- - ps : .\appveyor\make_combined_script.ps1
66- - ps : .\appveyor\install_expsql.ps1
67- - ps : .\appveyor\build_tsqlt_tests.ps1
68- - echo Running TSQLLint tests
69- - npx tsqllint -c %LINT_CONFIG% *.sql
78+ - ps : .\appveyor\make_combined_script.ps1
79+ - ps : .\appveyor\install_expsql.ps1
80+ - ps : .\appveyor\build_tsqlt_tests.ps1
7081
7182# Non-covered test run
7283test_script :
73- - ps : .\appveyor\run_tsqlt_tests.ps1
84+ - ps : .\appveyor\run_tsqllint.ps1
85+ - ps : .\appveyor\run_tsqlt_tests.ps1
7486
75- # Only run code cov & push changes on latest build env
7687for :
77- -
88+ # Latest SQL Server - Code cov & Upload
89+ -
7890 matrix :
7991 only :
8092 - LATEST : True
8193
8294 # Setup codecov, SQL Cover
8395 before_test :
84- - ps : Install-Package GOEddie.SQLCover -Force | Out-Null
85- - ps : choco install codecov --no-progress --limit-output | Out-Null
96+ - ps : .\appveyor\install_coverage_dependencies.ps1
8697
8798 # Run tests with SQL Cover analysis
8899 test_script :
91102 # Upload code coverage report, push generated files
92103 on_success :
93104 - codecov -f %COV_REPORT%
94- - ps : .\appveyor\push_git_changes.ps1
105+ - ps : .\appveyor\push_git_changes.ps1
106+
107+ # Azure SQL
108+ -
109+ matrix :
110+ only :
111+ - AzureSQL : True
112+
113+ install :
114+ - ps : .\appveyor\install_dependencies.ps1
115+ - ps : .\appveyor\install_tsqlt.ps1
116+
117+ # Setup codecov, SQL Cover
118+ # before_test:
119+ # - ps: .\appveyor\install_coverage_dependencies.ps1
120+
121+ # Run tests with SQL Cover analysis
122+ # test_script:
123+ # - ps: .\appveyor\sqlcover\Run_SQLCover.ps1
124+
125+ # Upload code coverage report, push generated files
126+ # on_success:
127+ # - codecov -f %COV_REPORT%
0 commit comments