Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86d70ba

Browse files
committed
Project root directory cleanup.
Moved shell scripts into .travis directory
1 parent 26cd400 commit 86d70ba

6 files changed

Lines changed: 22 additions & 38 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ install:
4242
- bash .travis/oracle/install.sh
4343

4444
script:
45-
- bash install.sh
46-
- bash examples.sh
47-
- bash test.sh
45+
- bash .travis/install.sh
46+
- bash .travis/examples.sh
47+
- bash .travis/test.sh
4848

4949
notifications:
5050
slack: utplsql:oiMuXO95TvKeAUENuDt4cPrB

.travis/create_utplsql_user.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
whenever sqlerror exit failure rollback
2+
whenever oserror exit failure rollback
3+
set echo off
4+
set feedback off
5+
set heading off
6+
set verify off
7+
8+
define ut3_user = &1
9+
define ut3_pass = &2
10+
define ut3_tablespace = &3
11+
12+
create user &ut3_user identified by &ut3_pass default tablespace &ut3_tablespace quota unlimited on &ut3_tablespace;
13+
14+
grant create session, create procedure, create type, create table to &ut3_user;
15+
16+
exit success
File renamed without changes.

install.sh renamed to .travis/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
22

33
set -ev
4-
4+
echo "$(dirname "$(readlink -f "$0")")"
55
#create user
66
"$ORACLE_HOME/bin/sqlplus" -L -S / AS SYSDBA <<SQL
7-
@@install/create_utplsql_user.sql ut3 ut3 users
7+
set echo off
8+
@@$(dirname "$(readlink -f "$0")")/create_utplsql_user.sql ut3 ut3 users
89
SQL
910

1011
cd source
File renamed without changes.

install/create_utplsql_user.sql

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)