File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 - PAGES_VERSION_BASE="version3"
2727 - SQLCLI=$HOME/.cache/sqlcl/bin/sql
2828 - CONTAINER_IP=""
29+ - CONNECTION_STR=""
2930
3031addons :
3132 apt :
@@ -63,6 +64,13 @@ script:
6364 - docker logs -f oracle-12c-r1-se | grep -m 1 "DATABASE IS READY TO USE!" --line-buffered
6465 - docker exec oracle-12c-r1-se ./setPassword.sh oracle
6566 - CONTAINER_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' oracle-12c-r1-se)
67+ - CONNECTION_STR="$CONTAINER_IP:1521/ORCLPDB1"
68+ # TODO:
69+ # create oracle user
70+ # run the image using a volume owned by oracle user
71+ # save oradata to cache
72+ # run tests
73+ # next time get oradata from cache
6674 - bash .travis/create_utplsql_owner.sh
6775 - bash .travis/create_utplsql_user.sh
6876 - bash .travis/install_libraries.sh
Original file line number Diff line number Diff line change 33
44cd $( dirname " $( readlink -f " $0 " ) " )
55# create user
6- " $SQLCLI " -L -S sys/oracle@//$CONTAINER_IP :1521/ORCLCDB AS SYSDBA << SQL
6+ " $SQLCLI " -L -S sys/oracle@//$CONNECTION_STR AS SYSDBA << SQL
77set echo off
88@@create_utplsql_owner.sql $UT3_OWNER $UT3_OWNER_PASSWORD $UT3_OWNER_TABLESPACE
99SQL
Original file line number Diff line number Diff line change 33
44cd $( dirname " $( readlink -f " $0 " ) " )
55# create user
6- " $SQLCLI " -L -S sys/oracle@//$CONTAINER_IP :1521/ORCLCDB AS SYSDBA << SQL
6+ " $SQLCLI " -L -S sys/oracle@//$CONNECTION_STR AS SYSDBA << SQL
77set echo off
88@@create_utplsql_user.sql $UT3_USER $UT3_USER_PASSWORD $UT3_USER_TABLESPACE
99SQL
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ PRODUCT=""
55
66# Call the casperjs script to return the download url.
77# Then download the file using curl.
8- downloadFile () {
8+ function downloadFile {
99 downloadUrl=$( exec casperjs download.js $ORACLE_OTN_USER $ORACLE_OTN_PASSWORD $1 $2 )
1010 echo " DownloadURL: $downloadUrl "
1111 curl $downloadUrl -o $3
Original file line number Diff line number Diff line change 44
55cd source
66# grant framework user
7- " $SQLCLI " -L -S sys/oracle@//$CONTAINER_IP :1521/ORCLCDB AS SYSDBA << SQL
7+ " $SQLCLI " -L -S sys/oracle@//$CONNECTION_STR AS SYSDBA << SQL
88@create_synonyms_and_grants_for_user.sql $UT3_OWNER $UT3_USER
99SQL
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ set -ev
44
55cd source
66# install core of utplsql
7- " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @install.sql $UT3_OWNER
7+ " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONNECTION_STR @install.sql $UT3_OWNER
88
99
1010cd ..
1111cd development
1212# do style check
13- " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @utplsql_style_check.sql
13+ " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONNECTION_STR @utplsql_style_check.sql
1414
1515# enable plsql debug
16- " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @ut_debug_enable.sql
16+ " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONNECTION_STR @ut_debug_enable.sql
Original file line number Diff line number Diff line change 33set -ev
44
55cd examples
6- " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @RunAllExamplesAsTests.sql
6+ " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONNECTION_STR @RunAllExamplesAsTests.sql
Original file line number Diff line number Diff line change 33set -ev
44
55cd examples
6- " $SQLCLI " $UT3_USER /$UT3_USER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB << SQL
6+ " $SQLCLI " $UT3_USER /$UT3_USER_PASSWORD @//$CONNECTION_STR << SQL
77whenever sqlerror exit failure rollback
88whenever oserror exit failure rollback
99
Original file line number Diff line number Diff line change 33set -ev
44
55cd tests
6- " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @RunAll.sql
6+ " $SQLCLI " $UT3_OWNER /$UT3_OWNER_PASSWORD @//$CONNECTION_STR @RunAll.sql
Original file line number Diff line number Diff line change 33set -ev
44
55cd tests
6- " $SQLCLI " $UT3_USER /$UT3_USER_PASSWORD @//$CONTAINER_IP :1521/ORCLCDB @RunAll.sql
6+ " $SQLCLI " $UT3_USER /$UT3_USER_PASSWORD @//$CONNECTION_STR @RunAll.sql
You can’t perform that action at this time.
0 commit comments