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

Skip to content

Commit 2d5bbe4

Browse files
committed
Connection string step always return 0. Stop container before saving.
1 parent 35c6558 commit 2d5bbe4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ install:
6969

7070
script:
7171
- CONTAINER_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $ORACLE_VERSION)
72-
- test $ORACLE_VERSION = $ORACLE_12cR1SE && CONNECTION_STR="$CONTAINER_IP:1521/ORCLPDB1"
73-
- test $ORACLE_VERSION = $ORACLE_11gR2XE && CONNECTION_STR="$CONTAINER_IP:1521/XE"
72+
- test $ORACLE_VERSION = $ORACLE_12cR1SE && CONNECTION_STR="$CONTAINER_IP:1521/ORCLPDB1" || true
73+
- test $ORACLE_VERSION = $ORACLE_11gR2XE && CONNECTION_STR="$CONTAINER_IP:1521/XE" || true
7474
- bash .travis/create_utplsql_owner.sh
7575
- bash .travis/create_utplsql_user.sh
7676
- bash .travis/install_libraries.sh

.travis/start_db.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ fi
2525

2626
# Save the oracledata dir to cache.
2727
if [ ! -f $HOME/$ORACLE_VERSION.tar.gz ]; then
28+
docker stop $ORACLE_VERSION
2829
sudo tar -zcf $CACHE_DIR/$ORACLE_VERSION.tar.gz $HOME/$ORACLE_VERSION
30+
docker start $ORACLE_VERSION
31+
docker logs -f $ORACLE_VERSION | grep -m 1 "DATABASE IS READY TO USE!" --line-buffered
2932
fi

0 commit comments

Comments
 (0)