Commit graph

94 commits

Author SHA1 Message Date
Morris Jobke
d99ce3971b
Namespace and array syntax fixes
* minor fixes in preparation of a bigger DB and config PR

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-03-19 14:52:54 -06:00
Robin Appelman
ac2542f0f0
add ci support for s3 object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-01-02 14:17:19 +01:00
Joas Schilling
11fa8fe7ee
Allow to run autotest with phpunit options
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-03 12:04:54 +01:00
Morris Jobke
83770651bc
adjust autotest.sh to also wait 600 seconds for mysqlmb4
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-03 09:45:16 +01:00
Morris Jobke
b1235a67de
test alternative drone syntax for command options
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-19 00:15:01 +02:00
Morris Jobke
d0a3d17912
add 4 byte mysql test run
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-19 00:15:01 +02:00
Thomas Müller
d294ef23dd
fix docker 2016-10-19 00:15:01 +02:00
Thomas Müller
9c3f066dab
Adding docker based unit test execution for mysql utf8mb4 2016-10-19 00:15:01 +02:00
Lukas Reschke
a1f5364d7f
Generate coverage for quick DB tests
This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 13:55:44 +02:00
Morris Jobke
11cc8903bb
add actual check if mysql is up already 2016-09-13 20:52:55 +02:00
Joas Schilling
db710e0b03
Make tests work with 4.8 at least 2016-09-13 16:31:33 +02:00
Morris Jobke
3acdc1339d Merge pull request #206 from nextcloud/ci-mysql
Add mysql job to CI
2016-06-30 09:06:19 +02:00
Lukas Reschke
7a9d60d87e
Merge remote-tracking branch 'upstream/master' into master-upstream-sync 2016-06-26 12:55:05 +02:00
Morris Jobke
41436fecc2 Add mysql job to CI 2016-06-23 10:48:20 +02:00
Morris Jobke
6583a2fef0
Add postgres to CI 2016-06-21 16:05:48 +02:00
Thomas Müller
5d1ef68cf0
Give mysql docker more time to start up 2016-06-17 13:29:24 +02:00
Bjoern Schiessle
e7cb21b7e9
allow to execute multiple tests in a directory at once 2016-06-14 11:32:45 +02:00
Jürgen Weigert
0a6b845f37 Update autotest.sh
usage in sync with reality.
2016-06-08 17:46:50 +02:00
Thomas Müller
59c4ea2c8d
Use docker for mysql as well - optionally 2016-05-06 19:36:44 +02:00
Thomas Müller
e2d8a4544d
Wait a while even after successful conect ... 2016-05-06 17:57:28 +02:00
Thomas Müller
cf3cb4d75e docker containers should be stopped before being removed - refs https://github.com/docker/docker/issues/18758 2016-03-09 14:02:08 +01:00
Joas Schilling
5d1cabe0f6 Add verbose flag to occ commands of autotest* 2016-02-23 09:31:31 +01:00
Andreas Schubert
12f2525d4f moved set -e after executable checking with which as old position off set -e stopped the script at this point without any error message 2016-02-19 15:16:04 +01:00
Thomas Müller
3c65b898b2 We require minimum PHPUnit 4.4 2016-02-17 14:01:57 +01:00
Thomas Müller
6b635044a7 Use official mariadb docker 2016-02-11 14:17:17 +01:00
Thomas Müller
ca2755ed6a Wait until mariadb is up and running 2016-02-11 11:09:03 +01:00
Roeland Jago Douma
b4302a49be Make autotest.sh able to output proper coverage again
The usage of single quotes make sure that a string is used verbatim in
bash. And no variables are subsituted.
2015-12-01 12:03:27 +01:00
Thomas Müller
936c870a9b Don't execute phpunit twice 2015-11-30 10:55:13 +01:00
Thomas Müller
26d758f0b1 Un-confuse @MorrisJobke 😉 2015-11-30 10:55:10 +01:00
Thomas Müller
678fe1b8f4 Introduce evaluation of an environment variable to choose if all, only database or only database unit tests are to be executed.
This is mainly required on automated execution on Jenkins
2015-11-30 10:55:05 +01:00
Morris Jobke
a91572b7f3 Use proper statement to retrieve the IP of an docker instance 2015-10-30 09:28:33 +01:00
Thomas Müller
fed3994cdb Fix termination of the ceph docker 2015-10-16 21:41:51 +02:00
Thomas Müller
b04e0deccc Fix termination of the ceph docker 2015-10-16 21:41:51 +02:00
Jörn Friedrich Dreyer
5646e39248 test objectstore with ceph docker
use default config for swift primary storage test config

allow testsuite to complete

fix timeout, script cleanup, enable debug for now

use btrfs loopback device, requires privileged container and absolute path

throw exception when storage has problems

debug by echo ...

sleep more, more debug
2015-10-06 16:27:25 +02:00
Olivier Paroz
ff4227bbfc Use a universal shebang
Fixes #15037
2015-09-27 13:03:31 +02:00
Thomas Müller
8b086156b1 Merge pull request #19177 from owncloud/docker-check-state
Connect to database to verify if it is running
2015-09-22 15:54:46 +02:00
Phil Davis
a165710e99 Minor text typos
that I noticed while looking at some code.
2015-09-21 23:04:25 +05:45
Lukas Reschke
5470d0edae Connect to database to verify if it is running
Try to connect to the OCI host via sqlplus to ensure that the connection is already running. Required by the new OCI configuration on CI.
2015-09-18 19:43:34 +02:00
Thomas Müller
8aa68aa522 Increment timeout on Oracle startup 2015-09-16 15:06:32 +02:00
Robin McCorkell
f6b1d3506f Allow easy XDEBUG debugging with autotest
Debugging scripts needs the environment variable XDEBUG_CONFIG to be
set, which initiates a connection to a listening debugger. But if that
env is set and one of the PHP setup steps occurs (e.g. occ install), the
debugging session is 'completed' and the debugger no longer listens
during the actual tests. This saves the XDEBUG_CONFIG env so it only
applies during the PHPUnit execution, so only the real tests trigger the
debugging.
2015-08-31 14:22:02 +01:00
Roeland Jago Douma
ea9eabae50 Add possible use of docker instance for MariaDB 2015-07-29 10:44:56 +02:00
Morris Jobke
a6daafa3cd [autotest] timeout oracle docker startup after 2 minutes 2015-07-16 11:51:15 +02:00
Morris Jobke
004d670d31 [autotest] wait for oracle docker container initialization instead of waiting a hard coded time 2015-07-15 15:38:50 +02:00
Morris Jobke
5133a738e1 autotest.sh with docker support for postgres
* waits until the docker container is started
* export USEDOCKER=1 to run the docker version of postgres
2015-07-06 08:36:07 +02:00
Thomas Müller
047b7a13a3 Let's wait a little longer until oracle finally is available 2015-06-24 14:09:32 +02:00
Morris Jobke
b230b8e2c6 move the OCPSinceChecker.php to build/ 2015-06-19 11:03:09 +02:00
Morris Jobke
ba43ec974c Add tool to check OCP for missing @since tag
* gets executed in autotest.sh and fails if some PHPDoc is missing
* doesn't check classes/methods that are marked as @deprecated
* iterates over all .php files in lib/public
2015-06-19 10:50:48 +02:00
Lukas Reschke
89b0bc1915 Store in array to allow paths with whitespace 2015-05-15 13:16:16 +02:00
Lukas Reschke
8b0c223d6e Add support for facade binary scripts
Fixes https://github.com/owncloud/core/issues/16296
2015-05-15 11:57:40 +02:00
Lukas Reschke
e3ac4d7b37 Lint bash script using ShellCheck
Ref http://www.shellcheck.net/about.html
2015-05-15 11:56:34 +02:00