Skip to content

Commit 3f3d101

Browse files
committed
Refactored Travis build to use local project test resources
(cherry picked from commit 8e387cc)
1 parent 774b265 commit 3f3d101

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

.travis/install_demo_project.sh

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/bash
22
set -ev
3-
cd $(dirname $(readlink -f $0))
43

5-
PROJECT_FILE="utPLSQL-demo-project"
6-
git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-project.git
4+
PROJECT_FILES_SRC="utplsql-maven-plugin/src/test/resources"
5+
PROJECT_FILES="resources"
76

87
cat > demo_project.sh.tmp <<EOF
98
sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA <<SQL
@@ -13,32 +12,22 @@ grant select any dictionary to ${DB_USER};
1312
exit
1413
SQL
1514
16-
cd ${PROJECT_FILE}
15+
cd ${PROJECT_FILES}
1716
sqlplus -S -L ${DB_USER}/${DB_PASS}@//127.0.0.1:1521/xe <<SQL
1817
whenever sqlerror exit failure rollback
1918
whenever oserror exit failure rollback
2019
21-
@source/award_bonus/employees_test.sql
22-
@source/award_bonus/award_bonus.prc
20+
@scripts/sources/TO_TEST_ME.tab
21+
@scripts/sources/PKG_TEST_ME.spc
22+
@scripts/sources/PKG_TEST_ME.bdy
2323
24-
@source/between_string/betwnstr.fnc
25-
26-
@source/remove_rooms_by_name/rooms.sql
27-
@source/remove_rooms_by_name/remove_rooms_by_name.prc
28-
29-
@test/award_bonus/test_award_bonus.pks
30-
@test/award_bonus/test_award_bonus.pkb
31-
32-
@test/between_string/test_betwnstr.pks
33-
@test/between_string/test_betwnstr.pkb
34-
35-
@test/remove_rooms_by_name/test_remove_rooms_by_name.pks
36-
@test/remove_rooms_by_name/test_remove_rooms_by_name.pkb
24+
@scripts/test/TEST_PKG_TEST_ME.spc
25+
@scripts/test/TEST_PKG_TEST_ME.bdy
3726
3827
exit
3928
SQL
4029
EOF
4130

42-
docker cp ./$PROJECT_FILE $ORACLE_VERSION:/$PROJECT_FILE
31+
docker cp ./$PROJECT_FILES_SRC $ORACLE_VERSION:/$PROJECT_FILES
4332
docker cp ./demo_project.sh.tmp $ORACLE_VERSION:/demo_project.sh
4433
docker exec $ORACLE_VERSION bash demo_project.sh

0 commit comments

Comments
 (0)