@@ -16,23 +16,26 @@ addons:
1616
1717env :
1818 global :
19- # Oracle 11g XE R2 docker variables
19+ # Docker variables
20+ # You need to additionally set secret variables:
21+ # DOCKER_USER, DOCKER_PASSWORD in Travis settings panel to make sure they are not visible
2022 - ORACLE_VERSION=11g-r2-xe
2123 - CONNECTION_STR='127.0.0.1:1521/XE'
2224 - DOCKER_OPTIONS='--shm-size=1g'
23- # Docker database Env
24- - SQLCLI="$HOME/sqlcl/bin/sql"
25- - OJDBC_HOME="$HOME/sqlcl/lib"
2625 - ORACLE_PWD="oracle"
2726 - UT3_DOCKER_REPO="utplsqlv3/oracledb"
2827 - DOCKHER_HUB_REPO="${DOCKER_BASE_TAG:-$UT3_DOCKER_REPO}"
29- # project variables
28+ - SQLCLI="$HOME/sqlcl/bin/sql"
29+ - OJDBC_HOME="$HOME/sqlcl/lib"
30+
31+ # Project database user variables
32+ # used for creating the user in database, deploying source code and tests as well as executing the tests
3033 - DB_USER=ut3_demo
31- - DB_PASS=LHZYPbWvYdu2ctp8
32- # # utPLSQL variables
34+ - DB_PASS=ut3_demo
35+ # utPLSQL variables
3336 - UTPLSQL_DIR="utPLSQL"
34- - ORA_SDTZ='Europe/London' # Needed as a client parameter
35- - TZ='Europe/London' # Needed as a DB Server parameter
37+ # - ORA_SDTZ='Europe/London' #Needed as a client parameter
38+ # - TZ='Europe/London' #Needed as a DB Server parameter
3639 # #utPLSQL-cli variables
3740 - UTPLSQL_CLI_VERSION="3.1.0"
3841 - CACHE_DIR=$HOME/.cache
@@ -52,24 +55,33 @@ cache:
5255 - $MAVEN_CFG
5356
5457before_install :
55- # download latest utPLSQL develop code
56- - git clone --depth=1 --branch=${UTPLSQL_3_VERSION} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
57- # download latest utPLSQL-cli release
58- - curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/download/v${UTPLSQL_CLI_VERSION}/utPLSQL-cli.zip
59- # update version placeholder before install
60- - if [[ -n ${VERSION_PLACEHOLDER} ]] ; then sed -i "s/${VERSION_PLACEHOLDER}/${UTPLSQL_3_VERSION}/g" ${UTPLSQL_DIR}/source/core/ut_utils.pks; fi
6158
6259
6360install :
61+ # Download Oracle sqlcl
62+ - bash .travis/install_sqlcl.sh
63+
64+ # download latest utPLSQL-cli release
65+ - curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/download/v${UTPLSQL_CLI_VERSION}/utPLSQL-cli.zip
66+ # and unzip it into utPLSQL-cli directory
6467 - unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
65- # get ojdbc.jar from Oracle using maven
68+ # get ojdbc.jar from Oracle using maven --maybe we could copy it from sqlcl ?
69+ # this is needed for utPSLQL-cli
6670 - bash .travis/maven_cfg.sh
67- - bash .travis/install_sqlcl.sh
68- # download and run Oracle docker DB image
71+ # download ORacle Database docker image from private repo and start the DB
6972 - bash .travis/start_db.sh
7073
71- # Install utPLSQL
74+ # Download specified version of utPLSQL from utPLSQL github repo
75+ # Allows to set any branch name to be used
76+ - git clone --depth=1 --branch=${UTPLSQL_3_VERSION} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
77+
78+ # update version placeholder before install
79+ # This is only needed when downloading utPLSQL versions older than 3.1
80+ - if [[ -n ${VERSION_PLACEHOLDER} ]] ; then sed -i "s/${VERSION_PLACEHOLDER}/${UTPLSQL_3_VERSION}/g" ${UTPLSQL_DIR}/source/core/ut_utils.pks; fi
81+
82+ # Install utPLSQL into DB
7283 - .travis/install_utplsql.sh
84+ # Create the demo project DB user account
7385 - .travis/setup_account.sh
7486 # Install project sources and tests
7587 - source/install.sh
0 commit comments