WIP: oracle tests on drone

Signed-off-by: Julius Härtl <jus@bitgrid.net>
test/oracle
Julius Härtl 2019-03-06 13:06:59 +01:00
rodzic 39f4d3dd02
commit 5849a0ea59
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
3 zmienionych plików z 36 dodań i 0 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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

Wyświetl plik

@ -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"