BE-SPAN/node_modules/sequelize-oracle/.travis/sequelize/before_install.sh
githubna-ilham 722cd440e8 first commit
2024-10-20 22:04:16 +07:00

24 lines
770 B
Bash

#!/bin/sh -e
if [ "DIALECT"${DIALECT} = "DIALECToracle" ] || [ "COVERAGE"${COVERAGE} = "COVERAGEtrue" ]
then
# Download and install Oracle XE
export ORACLE_FILE="oracle-xe-11.2.0-1.0.x86_64.rpm.zip"
export ORACLE_HOME="/u01/app/oracle/product/11.2.0/xe"
export ORACLE_SID="XE"
.travis/oracle/download.sh
.travis/oracle/install.sh
# Integrate Oracle Libraries (use by oracledb at build)
export OCI_LIB_DIR="/u01/app/oracle/product/11.2.0/xe/lib"
export OCI_INC_DIR="/u01/app/oracle/product/11.2.0/xe/rdbms/public"
# Integrate Oracle Libraries (use by oracledb at execution)
export LD_LIBRARY_PATH="/u01/app/oracle/product/11.2.0/xe/lib/"
sudo ldconfig
# Unlock count for HR ( default oracle user) if disable
.travis/sequelize/user.sh
fi