Skip to content

Commit 5419377

Browse files
committed
Testnin strategy matrix
1 parent 8844de8 commit 5419377

1 file changed

Lines changed: 57 additions & 49 deletions

File tree

utlplsql-demo-project.yml

Lines changed: 57 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,65 @@ variables:
1515
DB_USER: ut3_demo
1616
DB_PASS: ut3_demo
1717

18-
steps:
19-
- template: templates/t-extend-download-binaries.yml
20-
parameters:
21-
packages:
22-
- name: sqlcl
23-
download_location: "$(Build.BinariesDirectory)/sqlcl-latest.zip"
24-
unpack_location: "$(Build.BinariesDirectory)"
25-
url: "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip"
26-
archive: "zip"
27-
addtoPath: "$(SQLCL_DIR)/bin"
28-
29-
- name: utlplsqlcli
30-
download_location: "$(Build.BinariesDirectory)/utPLSQL-cli.zip"
31-
unpack_location: "$(Build.BinariesDirectory)"
32-
url: "https://github.com/utPLSQL/utPLSQL-cli/releases/download/$(UTPLSQL_CLI_VERSION)/utPLSQL-cli.zip"
33-
archive: "zip"
34-
addToPath: "$(UTPLSQL_CLI_DIR)/bin"
18+
jobs:
19+
- job: Build utPLSQL-demo-project
20+
strategy:
21+
matrix:
22+
Oracle19_2:
23+
ORACLE_VERSION: "19c-se2-small"
24+
maxParallel: 2
3525

36-
- template: templates/t-extend-database-build.yml
37-
parameters:
38-
utplsqlVersion: ${UTPLSQL_VERSION}
39-
utplsqlDir: ${UTPLSQL_DIR}
40-
test_user: ${DB_USER}
41-
test_pwd: ${DB_PASS}
42-
targetDatabases:
43-
- oracleVersion: "19c-se2-small"
44-
connectionString: "127.0.0.1:1521/ORCLCDB"
45-
dockerPortMap: "1521"
46-
dockerOptions: "--shm-size=1g"
47-
scripts:
48-
- displayName: "Install utPLSQL"
49-
user: "sys"
50-
password: "oracle"
51-
script: "install_headless.sql UT3 UT3 users"
52-
work_dir: "${UTPLSQL_DIR}/source"
26+
steps:
27+
- template: templates/t-extend-download-binaries.yml
28+
parameters:
29+
packages:
30+
- name: sqlcl
31+
download_location: "$(Build.BinariesDirectory)/sqlcl-latest.zip"
32+
unpack_location: "$(Build.BinariesDirectory)"
33+
url: "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip"
34+
archive: "zip"
35+
addtoPath: "$(SQLCL_DIR)/bin"
36+
37+
- name: utlplsqlcli
38+
download_location: "$(Build.BinariesDirectory)/utPLSQL-cli.zip"
39+
unpack_location: "$(Build.BinariesDirectory)"
40+
url: "https://github.com/utPLSQL/utPLSQL-cli/releases/download/$(UTPLSQL_CLI_VERSION)/utPLSQL-cli.zip"
41+
archive: "zip"
42+
addToPath: "$(UTPLSQL_CLI_DIR)/bin"
43+
44+
- template: templates/t-extend-database-build.yml
45+
parameters:
46+
utplsqlVersion: ${UTPLSQL_VERSION}
47+
utplsqlDir: ${UTPLSQL_DIR}
48+
test_user: ${DB_USER}
49+
test_pwd: ${DB_PASS}
50+
targetDatabases:
51+
- oracleVersion: "19c-se2-small"
52+
connectionString: "127.0.0.1:1521/ORCLCDB"
53+
dockerPortMap: "1521"
54+
dockerOptions: "--shm-size=1g"
55+
scripts:
56+
- displayName: "Install utPLSQL"
57+
user: "sys"
58+
password: "oracle"
59+
script: "install_headless.sql UT3 UT3 users"
60+
work_dir: "${UTPLSQL_DIR}/source"
5361

54-
- displayName: "Create Test User"
55-
user: "sys"
56-
password: "oracle"
57-
script: "source/create_user.sql"
58-
work_dir: "$(Build.SourcesDirectory)"
62+
- displayName: "Create Test User"
63+
user: "sys"
64+
password: "oracle"
65+
script: "source/create_user.sql"
66+
work_dir: "$(Build.SourcesDirectory)"
5967

60-
- displayName: "Install Source"
61-
user: "${DB_USER}"
62-
password: "${DB_PASS}"
63-
script: "source/install.sql"
64-
work_dir: "$(Build.SourcesDirectory)"
68+
- displayName: "Install Source"
69+
user: "${DB_USER}"
70+
password: "${DB_PASS}"
71+
script: "source/install.sql"
72+
work_dir: "$(Build.SourcesDirectory)"
6573

66-
- displayName: "Install Tests"
67-
user: "${DB_USER}"
68-
password: "${DB_PASS}"
69-
script: "test/install.sql"
70-
work_dir: "$(Build.SourcesDirectory)"
74+
- displayName: "Install Tests"
75+
user: "${DB_USER}"
76+
password: "${DB_PASS}"
77+
script: "test/install.sql"
78+
work_dir: "$(Build.SourcesDirectory)"
7179

0 commit comments

Comments
 (0)