Skip to content

Commit b36cacc

Browse files
author
Jacek Gębal
committed
Fixing build pipeline.
1 parent 36dd791 commit b36cacc

File tree

3 files changed

+29
-36
lines changed

3 files changed

+29
-36
lines changed

.github/scripts/install_demo_project.sh

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@ cd $(dirname $(readlink -f $0))
55
PROJECT_FILE="utPLSQL-demo-project"
66
git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-project.git
77

8-
cat > demo_project.sh.tmp <<EOF
9-
sqlplus -S -L sys/oracle@//localhost:1521/${SERVICE_NAME} AS SYSDBA <<SQL
10-
PROMPT Creating Database User ${DB_USER}
11-
PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
12-
PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
13-
PROMPT grant connect to ${DB_USER};
14-
PROMPT grant select any dictionary to ${DB_USER};
15-
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
16-
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
17-
grant connect to ${DB_USER};
18-
grant select any dictionary to ${DB_USER};
19-
exit
20-
SQL
8+
cat > demo_project.sh.tmp <<- EOF
9+
sqlplus -S -L sys/oracle@//localhost:1521/${SERVICE_NAME} AS SYSDBA <<- SQL
10+
PROMPT Creating Database User ${DB_USER}
11+
PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
12+
PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
13+
PROMPT grant connect to ${DB_USER};
14+
PROMPT grant select any dictionary to ${DB_USER};
15+
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
16+
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
17+
grant connect to ${DB_USER};
18+
grant select any dictionary to ${DB_USER};
19+
exit
20+
SQL
2121
22-
cd /${PROJECT_FILE}
23-
sqlplus -S -L ${DB_USER}/${DB_PASS}@//localhost:1521/${SERVICE_NAME} <<SQL
24-
whenever sqlerror exit failure rollback
25-
whenever oserror exit failure rollback
26-
PROMPT Installing sources of demo project into schema ${DB_USER}
27-
@source/install.sql
28-
exit
29-
SQL
22+
cd /${PROJECT_FILE}
23+
sqlplus -S -L ${DB_USER}/${DB_PASS}@//localhost:1521/${SERVICE_NAME} <<- SQL
24+
whenever sqlerror exit failure rollback
25+
whenever oserror exit failure rollback
26+
PROMPT Installing sources of demo project into schema ${DB_USER}
27+
@source/install.sql
28+
exit
29+
SQL
3030
31-
sqlplus -S -L ${DB_USER}/${DB_PASS}@//localhost:1521/${SERVICE_NAME} <<SQL
32-
whenever sqlerror exit failure rollback
33-
whenever oserror exit failure rollback
34-
PROMPT Installing tests for demo project into schema ${DB_USER}
35-
@test/install.sql
36-
exit
37-
SQL
31+
sqlplus -S -L ${DB_USER}/${DB_PASS}@//localhost:1521/${SERVICE_NAME} <<- SQL
32+
whenever sqlerror exit failure rollback
33+
whenever oserror exit failure rollback
34+
PROMPT Installing tests for demo project into schema ${DB_USER}
35+
@test/install.sql
36+
exit
37+
SQL
3838
EOF
3939

4040
docker cp ./${PROJECT_FILE} oracle:/${PROJECT_FILE}

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
UTPLSQL_VERSION: ${{matrix.utplsql_version}}
2424
UTPLSQL_FILE: ${{matrix.utplsql_file}}
25-
DB_URL: "localhost:1521/FREEPDB1"
25+
DB_URL: "//localhost:1521/FREEPDB1"
2626
DB_USER: APP
2727
DB_PASS: APP
2828

pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,6 @@
224224
<plugin>
225225
<groupId>org.apache.maven.plugins</groupId>
226226
<artifactId>maven-failsafe-plugin</artifactId>
227-
<configuration>
228-
<environmentVariables>
229-
<DB_URL>${dbUrl}</DB_URL>
230-
<DB_USER>${dbUser}</DB_USER>
231-
<DB_PASS>${dbPass}</DB_PASS>
232-
</environmentVariables>
233-
</configuration>
234227
</plugin>
235228
</plugins>
236229
</pluginManagement>

0 commit comments

Comments
 (0)