File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1818 - API_DB_USER=api
1919 - API_DB_PASS=api
2020 matrix :
21- - ORACLE_VERSION="11g-xe-r2" CONNECTION_STR="127.0.0.1:1521/XE" DOCKER_OPTIONS="--shm-size=1g"
21+ - ORACLE_VERSION="11g-xe-r2" DOCKER_OPTIONS="--shm-size=1g"
2222
2323cache :
2424 directories :
@@ -30,7 +30,6 @@ install:
3030 - bash .travis/maven_cfg.sh
3131 - bash .travis/start_db.sh
3232 - bash .travis/install_utplsql.sh
33- - bash .travis/create_app_user.sh
3433
3534script :
3635 - mvn test -B
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ev
33
4- sqlplus -S -L / AS SYSDBA << EOF
5- create user $DB_USER identified by $DB_PASS
4+ sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA << EOF
5+ create user api identified by api
66quota unlimited on USERS
77default tablespace USERS;
88grant create session,
@@ -11,7 +11,7 @@ grant create session,
1111 create table,
1212 create sequence,
1313 create view
14- to $DB_USER ;
15- grant select any dictionary to $DB_USER ;
14+ to api ;
15+ grant select any dictionary to api ;
1616exit;
1717EOF
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL.git
1717cat > install.sh.tmp << EOF
1818# tar -xzf $UTPLSQL_FILE .tar.gz && rm $UTPLSQL_FILE .tar.gz
1919cd /$UTPLSQL_FILE /source
20- sqlplus -S -L sys/oracle@//$CONNECTION_STR AS SYSDBA @install_headless.sql
20+ sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA @install_headless.sql
2121EOF
2222
2323# Copy utPLSQL files to the container and install it.
@@ -31,4 +31,5 @@ docker cp ./create_api_user.sh $ORACLE_VERSION:/create_api_user.sh
3131rm install.sh.tmp
3232
3333# Execute the utPLSQL installation inside the container.
34- docker exec $ORACLE_VERSION bash -c " /install.sh && /create_api_user.sh"
34+ docker exec $ORACLE_VERSION bash install.sh
35+ docker exec $ORACLE_VERSION bash create_api_user.sh
You can’t perform that action at this time.
0 commit comments