kopia lustrzana https://github.com/nextcloud/social
WIP: oracle tests on drone
Signed-off-by: Julius Härtl <jus@bitgrid.net>test/oracle
rodzic
39f4d3dd02
commit
5849a0ea59
|
@ -121,6 +121,13 @@ services:
|
|||
when:
|
||||
matrix:
|
||||
DB: postgres
|
||||
oracle:
|
||||
image: deepdiver/docker-oracle-xe-11g:2.0
|
||||
environment:
|
||||
- ORACLE_DISABLE_ASYNCH_IO=true
|
||||
when:
|
||||
matrix:
|
||||
DB: oracle
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
# TODO: Move this to a docker container as installing the oracle client takes quite long
|
||||
|
||||
# build php module
|
||||
apt-get update && apt-get install -qq --force-yes libaio1 sudo
|
||||
git clone https://github.com/DeepDiver1975/oracle_instant_client_for_ubuntu_64bit.git instantclient
|
||||
cd instantclient
|
||||
bash -c 'printf "\n" | python system_setup.py'
|
||||
|
||||
export ORACLE_HOME=/usr/lib/oracle/11.2/client64
|
||||
|
||||
mkdir -p /usr/lib/oracle/11.2/client64/rdbms/
|
||||
ln -s /usr/include/oracle/11.2/client64/ /usr/lib/oracle/11.2/client64/rdbms/public
|
||||
|
||||
printf "/usr/lib/oracle/11.2/client64\n" | pecl install oci8
|
||||
|
||||
# TODO: make this work on other php versions
|
||||
echo "extension=oci8.so" >> /etc/php/7.1/mods-available/oci8.ini
|
||||
phpenmod oci8
|
||||
|
|
@ -50,6 +50,15 @@ if [[ "$DB" == "postgres" ]] ; then
|
|||
DB="pgsql"
|
||||
fi
|
||||
|
||||
if [ "$DB" == "oracle" ] ; then
|
||||
export DATABASEHOST="oracle:1521"
|
||||
|
||||
if [ ! -f before_install_oracle.sh ]; then
|
||||
wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install_oracle.sh
|
||||
fi
|
||||
bash ./before_install_oracle.sh
|
||||
fi
|
||||
|
||||
# TODO: oracle
|
||||
export DATABASEHOST="$DATABASEHOST"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue