summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-09-22 16:34:50 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-09-22 16:34:50 +0200
commit55b4c0ac079537de213b9deca3ed1581cded6e5c (patch)
tree73adfb9bf3c33de1458e44546c6dcb34ae03ab71 /build
parent9e8d2907e2c86c1c425feefd5e5a97ed4325b040 (diff)
downloadnextcloud-server-55b4c0ac079537de213b9deca3ed1581cded6e5c.tar.gz
nextcloud-server-55b4c0ac079537de213b9deca3ed1581cded6e5c.zip
Revert "Travis support"
This reverts commit 472d896ce9aad4d526126a7aefa96127920585e6. Conflicts: .travis.yml
Diffstat (limited to 'build')
-rwxr-xr-xbuild/prepareTests.sh141
-rwxr-xr-xbuild/prepareTestsOracle.sh65
-rw-r--r--build/travis.php.ini1
3 files changed, 0 insertions, 207 deletions
diff --git a/build/prepareTests.sh b/build/prepareTests.sh
deleted file mode 100755
index 84bbfd40f6d..00000000000
--- a/build/prepareTests.sh
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/bin/bash
-#
-# ownCloud
-#
-# @author Thomas Müller
-# @author Morris Jobke
-# @copyright 2012, 2013 Thomas Müller thomas.mueller@tmit.eu
-# @copyright 2014 Morris Jobke hey@morrisjobke.de
-#
-
-DATABASENAME=oc_autotest
-DATABASEUSER=oc_autotest
-ADMINLOGIN=admin
-BASEDIR=$PWD
-
-# check for database parameter
-if [ $1 ]; then
- DBCONFIGS="sqlite mysql pgsql oracle"
- FOUND=0
- for DBCONFIG in $DBCONFIGS; do
- if [ $1 = $DBCONFIG ]; then
- FOUND=1
- break
- fi
- done
- if [ $FOUND = 0 ]; then
- echo -e "Unknown database config name \"$1\"\n" >&2
- exit 2
- fi
-else
- echo "Please pass in a database to use as first parameter" >&2
- exit 1
-fi
-
-# check if config dir and file is writable
-if ! [[ -w config && ( !( -e config/config.php ) || -w config/config.php ) ]]; then
- echo "Please enable write permissions on config and config/config.php" >&2
- exit 1
-fi
-
-# use tmpfs for datadir - should speedup unit test execution
-if [ -d /dev/shm ]; then
- DATADIR=/dev/shm/data-autotest
-else
- DATADIR=$BASEDIR/data-autotest
-fi
-
-echo "Setup environment for $1 testing ..."
-# revert changes to tests/data
-git checkout tests/data/*
-
-# reset data directory
-rm -rf $DATADIR
-mkdir $DATADIR
-
-cp tests/preseed-config.php config/config.php
-
-# # # # # #
-# SQLite #
-# # # # # #
-if [ "$1" == "sqlite" ] ; then
- cat > ./config/autoconfig.php <<DELIM
-<?php
-\$AUTOCONFIG = array (
- 'installed' => false,
- 'dbtype' => 'sqlite',
- 'dbtableprefix' => 'oc_',
- 'adminlogin' => '$ADMINLOGIN',
- 'adminpass' => 'admin',
- 'directory' => '$DATADIR',
-);
-DELIM
-fi
-
-# # # # #
-# MySQL #
-# # # # #
-if [ "$1" == "mysql" ] ; then
- cat > ./config/autoconfig.php <<DELIM
-<?php
-\$AUTOCONFIG = array (
- 'installed' => false,
- 'dbtype' => 'mysql',
- 'dbtableprefix' => 'oc_',
- 'adminlogin' => '$ADMINLOGIN',
- 'adminpass' => 'admin',
- 'directory' => '$DATADIR',
- 'dbuser' => '$DATABASEUSER',
- 'dbname' => '$DATABASENAME',
- 'dbhost' => 'localhost',
- 'dbpass' => 'owncloud',
-);
-DELIM
-fi
-
-# # # # # # # #
-# PostgreSQL #
-# # # # # # # #
-if [ "$1" == "pgsql" ] ; then
- cat > ./config/autoconfig.php <<DELIM
-<?php
-\$AUTOCONFIG = array (
- 'installed' => false,
- 'dbtype' => 'pgsql',
- 'dbtableprefix' => 'oc_',
- 'adminlogin' => '$ADMINLOGIN',
- 'adminpass' => 'admin',
- 'directory' => '$DATADIR',
- 'dbuser' => '$DATABASEUSER',
- 'dbname' => '$DATABASENAME',
- 'dbhost' => 'localhost',
- 'dbpass' => 'owncloud',
-);
-DELIM
-
-fi
-
-# # # # # #
-# Oracle #
-# # # # # #
-if [ "$1" == "oracle" ] ; then
- build/prepareTestsOracle.sh $DATABASENAME $DATABASEUSER $ADMINLOGIN $DATADIR
-fi
-
-echo "Trigger ownCloud installation"
-php -f index.php | grep -i -C9999 error && echo "Error during setup" && exit 101
-
-echo "Enable apps ..."
-cd tests
-php -f enable_all.php | grep -i -C9999 error && echo "Error during setup" && exit 101
-cd $BASEDIR
-
-# show environment
-echo "ownCloud configuration:"
-cat $BASEDIR/config/config.php
-
-echo "ownCloud data directory:"
-ls -ll $DATADIR
-
-echo "owncloud.log:"
-cat $DATADIR/owncloud.log
diff --git a/build/prepareTestsOracle.sh b/build/prepareTestsOracle.sh
deleted file mode 100755
index 65a59036659..00000000000
--- a/build/prepareTestsOracle.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/bash
-#
-# ownCloud - prepareTestOracle.sh
-#
-# @author Morris Jobke
-# @copyright 2014 Morris Jobke hey@morrisjobke.de
-#
-
-DATABASENAME=$1
-DATABASEUSER=$2
-ADMINLOGIN=$3
-DATADIR=$4
-
-# set oracle home if it is not set
-TRAVIS_ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/server"
-[ -z "$ORACLE_HOME" ] && ORACLE_HOME=$TRAVIS_ORACLE_HOME
-
-echo "Load Oracle environment variables so that we can run 'sqlplus'."
- . $ORACLE_HOME/bin/oracle_env.sh
-
-echo "drop the database"
-sqlplus64 -s -l / as sysdba <<EOF
- drop user $DATABASENAME cascade;
-EOF
-
-echo "create the database"
-sqlplus64 -s -l / as sysdba <<EOF
- create user $DATABASENAME identified by owncloud;
- alter user $DATABASENAME default tablespace users
- temporary tablespace temp
- quota unlimited on users;
- grant create session
- , create table
- , create procedure
- , create sequence
- , create trigger
- , create view
- , create synonym
- , alter session
- to $DATABASENAME;
- exit;
-EOF
-
-# there was a maximum cursor limit exceed
-# therefore increase the limit
-sqlplus64 -s -l / as sysdba <<EOF
- ALTER SYSTEM SET open_cursors = 1000 SCOPE=BOTH;
-EOF
-
-cat > ./config/autoconfig.php <<DELIM
-<?php
-\$AUTOCONFIG = array (
- 'installed' => false,
- 'dbtype' => 'oci',
- 'dbtableprefix' => 'oc_',
- 'adminlogin' => '$ADMINLOGIN',
- 'adminpass' => 'admin',
- 'directory' => '$DATADIR',
- 'dbuser' => '$DATABASEUSER',
- 'dbname' => 'XE',
- 'dbhost' => 'localhost',
- 'dbpass' => 'owncloud',
-);
-DELIM
-
diff --git a/build/travis.php.ini b/build/travis.php.ini
deleted file mode 100644
index 5e5483e2d6a..00000000000
--- a/build/travis.php.ini
+++ /dev/null
@@ -1 +0,0 @@
-memory_limit = 1024M