diff --git a/.travis.yml b/.travis.yml index 7e749cbd1..2c833f2ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,9 +42,9 @@ install: - bash .travis/oracle/install.sh script: - - bash install.sh - - bash examples.sh - - bash test.sh + - bash .travis/install.sh + - bash .travis/examples.sh + - bash .travis/test.sh notifications: slack: utplsql:oiMuXO95TvKeAUENuDt4cPrB diff --git a/.travis/create_utplsql_user.sql b/.travis/create_utplsql_user.sql new file mode 100644 index 000000000..83c1f0fda --- /dev/null +++ b/.travis/create_utplsql_user.sql @@ -0,0 +1,16 @@ +whenever sqlerror exit failure rollback +whenever oserror exit failure rollback +set echo off +set feedback off +set heading off +set verify off + +define ut3_user = &1 +define ut3_pass = &2 +define ut3_tablespace = &3 + +create user &ut3_user identified by &ut3_pass default tablespace &ut3_tablespace quota unlimited on &ut3_tablespace; + +grant create session, create procedure, create type, create table to &ut3_user; + +exit success diff --git a/examples.sh b/.travis/examples.sh similarity index 100% rename from examples.sh rename to .travis/examples.sh diff --git a/install.sh b/.travis/install.sh similarity index 57% rename from install.sh rename to .travis/install.sh index 1739e5fc0..53fdaf437 100644 --- a/install.sh +++ b/.travis/install.sh @@ -1,10 +1,11 @@ #!/bin/bash set -ev - +echo "$(dirname "$(readlink -f "$0")")" #create user "$ORACLE_HOME/bin/sqlplus" -L -S / AS SYSDBA <