@@ -27,6 +27,18 @@ variables:
2727 UTPLSQL_VERSION : ' v3.1.7'
2828 CACHE_DIR : $(Pipeline.Workspace)/.cache
2929
30+ matrix :
31+ develop :
32+ UTPLSQL_VERSION : ' develop'
33+ v_3_0_0 :
34+ UTPLSQL_VERSION : ' v3.0.0'
35+ VERSION_PLACEHOLDER : ' utPLSQL - Version X.X.X.X'
36+ v_3_0_4 :
37+ UTPLSQL_VERSION : ' v3.0.4'
38+ VERSION_PLACEHOLDER : ' utPLSQL - Version X.X.X.X'
39+ v_3_1_4 :
40+ UTPLSQL_VERSION : ' v3.1.4'
41+
3042steps :
3143# Possible cache options:
3244# https://marketplace.visualstudio.com/items?itemName=1ESLighthouseEng.PipelineArtifactCaching
@@ -59,6 +71,11 @@ steps:
5971
6072 - bash : |
6173 git clone --depth=1 --branch=${UTPLSQL_VERSION} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
74+ # Needed for older versions of utPLSQL.
75+ if [[ -n ${VERSION_PLACEHOLDER} ]]
76+ then
77+ sed -i "s/${VERSION_PLACEHOLDER}/${UTPLSQL_VERSION}/g" ${UTPLSQL_DIR}/source/core/ut_utils.pks
78+ fi
6279 displayName: 'Download utPLSQL'
6380
6481 - bash : |
@@ -82,16 +99,17 @@ steps:
8299
83100 - bash : |
84101 $(UTPLSQL_CLI_DIR)/bin/utplsql run ${DB_USER}/${DB_PASS}@//${CONNECTION_STR} \
85- --debug \
86- -source_path=source -owner=${DB_USER} \
87- -test_path=test -owner=${DB_USER} \
88- -f=ut_documentation_reporter -c \
89- -f=ut_coverage_html_reporter -o=coverage.html \
90- -f=ut_coverage_sonar_reporter -o=coverage.xml \
91- -f=ut_sonar_test_reporter -o=test_results.xml \
92- -f=ut_coverage_cobertura_reporter -o=cobertura.xml \
93- -f=ut_junit_reporter -o=junit_test_results.xml \
94- --failure-exit-code=0
102+ --debug \
103+ -source_path=source -owner=${DB_USER} \
104+ -test_path=test -owner=${DB_USER} \
105+ -f=ut_documentation_reporter -c \
106+ -f=ut_coverage_sonar_reporter -o=coverage.xml \
107+ -f=ut_sonar_test_reporter -o=test_results.xml \
108+ -f=ut_coverage_cobertura_reporter -o=cobertura.xml \
109+ -f=ut_junit_reporter -o=junit_test_results.xml \
110+ --failure-exit-code=0
111+ cat coverage.xml
112+ cat test_results.xml
95113 displayName: 'Test'
96114
97115 - task : PublishTestResults@2
0 commit comments