Skip to content

Commit e453df0

Browse files
authored
Merge pull request #6 from viniciusam/build_config
Fix build #4
2 parents 487bada + 967660c commit e453df0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
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

2323
cache:
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

3534
script:
3635
- mvn test -B

.travis/create_api_user.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -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
66
quota unlimited on USERS
77
default tablespace USERS;
88
grant 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;
1616
exit;
1717
EOF

.travis/install_utplsql.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL.git
1717
cat > install.sh.tmp <<EOF
1818
# tar -xzf $UTPLSQL_FILE.tar.gz && rm $UTPLSQL_FILE.tar.gz
1919
cd /$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
2121
EOF
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
3131
rm 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

0 commit comments

Comments
 (0)