-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathutlplsql-demo-project.yml
82 lines (72 loc) · 2.71 KB
/
utlplsql-demo-project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
trigger:
- develop
pool:
vmImage: ubuntu-latest
variables:
CACHE_DIR: $(Pipeline.Workspace)/.cache
SQLCL_DIR: $(Build.BinariesDirectory)/sqlcl
UTPLSQL_DIR: $(Build.BinariesDirectory)/utPLSQL
UTPLSQL_CLI_DIR: $(Build.BinariesDirectory)/utPLSQL-cli
UTPLSQL_CLI_VERSION: '3.1.9'
UTPLSQL_VERSION: 'v3.1.13'
DOCKHER_HUB_REPO: 'gvenzl/oracle-xe'
DB_USER: ut3_demo
DB_PASS: ut3_demo
jobs:
- job: utPLSQL_demo_project
displayName: Build utPLSQL-demo-project
strategy:
matrix:
Oracle21_slim:
ORACLE_VERSION: "21-slim"
maxParallel: 2
steps:
- template: .azure_templates/t-task-extend-download-binaries.yml
parameters:
packages:
- name: sqlcl
download_location: "$(Build.BinariesDirectory)/sqlcl-latest.zip"
unpack_location: "$(Build.BinariesDirectory)"
url: "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip"
archive: "zip"
addtoPath: "$(SQLCL_DIR)/bin"
- name: utlplsqlcli
download_location: "$(Build.BinariesDirectory)/utPLSQL-cli.zip"
unpack_location: "$(Build.BinariesDirectory)"
url: "https://github.com/utPLSQL/utPLSQL-cli/releases/download/$(UTPLSQL_CLI_VERSION)/utPLSQL-cli.zip"
archive: "zip"
addToPath: "$(UTPLSQL_CLI_DIR)/bin"
- template: .azure_templates/t-extend-database-build.yml
parameters:
containerRegistry: utPLSQL-docker
dockerRepo: gvenzl/oracle-xe
utplsqlVersion: ${UTPLSQL_VERSION}
utplsqlDir: ${UTPLSQL_DIR}
test_user: ${DB_USER}
test_pwd: ${DB_PASS}
targetDatabases:
- oracleVersion: "21-slim"
connectionString: "127.0.0.1:1521/XE"
dockerPortMap: "1521"
dockerOptions: ""
scripts:
- displayName: "Install utPLSQL"
user: "sys"
password: "oracle"
script: "install_headless.sql UT3 UT3 users"
work_dir: "${UTPLSQL_DIR}/source"
- displayName: "Create Test User"
user: "sys"
password: "oracle"
script: "source/create_user.sql"
work_dir: "$(Build.SourcesDirectory)"
- displayName: "Install Source"
user: "${DB_USER}"
password: "${DB_PASS}"
script: "source/install.sql"
work_dir: "$(Build.SourcesDirectory)"
- displayName: "Install Tests"
user: "${DB_USER}"
password: "${DB_PASS}"
script: "test/install.sql"
work_dir: "$(Build.SourcesDirectory)"