From 86d70ba950fb5adffdd6900a77ac6abb6bba2bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20G=C4=99bal?= Date: Wed, 24 Aug 2016 00:02:53 +0100 Subject: [PATCH] Project root directory cleanup. Moved shell scripts into .travis directory --- .travis.yml | 6 +++--- .travis/create_utplsql_user.sql | 16 +++++++++++++++ examples.sh => .travis/examples.sh | 0 install.sh => .travis/install.sh | 5 +++-- test.sh => .travis/test.sh | 0 install/create_utplsql_user.sql | 33 ------------------------------ 6 files changed, 22 insertions(+), 38 deletions(-) create mode 100644 .travis/create_utplsql_user.sql rename examples.sh => .travis/examples.sh (100%) rename install.sh => .travis/install.sh (57%) rename test.sh => .travis/test.sh (100%) delete mode 100644 install/create_utplsql_user.sql 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 <