Joas Schilling
11fa8fe7ee
Allow to run autotest with phpunit options
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 7 gadiem
Morris Jobke
83770651bc
adjust autotest.sh to also wait 600 seconds for mysqlmb4
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Morris Jobke
b1235a67de
test alternative drone syntax for command options
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Morris Jobke
d0a3d17912
add 4 byte mysql test run
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Thomas Müller
d294ef23dd
fix docker
pirms 8 gadiem
Thomas Müller
9c3f066dab
Adding docker based unit test execution for mysql utf8mb4
pirms 8 gadiem
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>
pirms 7 gadiem
Morris Jobke
11cc8903bb
add actual check if mysql is up already
pirms 7 gadiem
Joas Schilling
db710e0b03
Make tests work with 4.8 at least
pirms 7 gadiem
Morris Jobke
41436fecc2
Add mysql job to CI
pirms 8 gadiem
Morris Jobke
6583a2fef0
Add postgres to CI
pirms 8 gadiem
Thomas Müller
5d1ef68cf0
Give mysql docker more time to start up
pirms 8 gadiem
Bjoern Schiessle
e7cb21b7e9
allow to execute multiple tests in a directory at once
pirms 8 gadiem
Jürgen Weigert
0a6b845f37
Update autotest.sh
usage in sync with reality.
pirms 8 gadiem
Thomas Müller
59c4ea2c8d
Use docker for mysql as well - optionally
pirms 8 gadiem
Thomas Müller
e2d8a4544d
Wait a while even after successful conect ...
pirms 8 gadiem
Thomas Müller
cf3cb4d75e
docker containers should be stopped before being removed - refs https://github.com/docker/docker/issues/18758
pirms 8 gadiem
Joas Schilling
5d1cabe0f6
Add verbose flag to occ commands of autotest*
pirms 8 gadiem
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
pirms 8 gadiem
Thomas Müller
3c65b898b2
We require minimum PHPUnit 4.4
pirms 8 gadiem
Thomas Müller
6b635044a7
Use official mariadb docker
pirms 8 gadiem
Thomas Müller
ca2755ed6a
Wait until mariadb is up and running
pirms 8 gadiem
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.
pirms 8 gadiem
Thomas Müller
936c870a9b
Don't execute phpunit twice
pirms 8 gadiem
Thomas Müller
26d758f0b1
Un-confuse @MorrisJobke :wink:
pirms 8 gadiem
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
pirms 8 gadiem
Morris Jobke
a91572b7f3
Use proper statement to retrieve the IP of an docker instance
pirms 8 gadiem
Thomas Müller
fed3994cdb
Fix termination of the ceph docker
pirms 8 gadiem
Thomas Müller
b04e0deccc
Fix termination of the ceph docker
pirms 8 gadiem
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
pirms 8 gadiem
Olivier Paroz
ff4227bbfc
Use a universal shebang
Fixes #15037
pirms 8 gadiem
Phil Davis
a165710e99
Minor text typos
that I noticed while looking at some code.
pirms 8 gadiem
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.
pirms 8 gadiem
Thomas Müller
8aa68aa522
Increment timeout on Oracle startup
pirms 8 gadiem
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.
pirms 8 gadiem
Roeland Jago Douma
ea9eabae50
Add possible use of docker instance for MariaDB
pirms 9 gadiem
Morris Jobke
a6daafa3cd
[autotest] timeout oracle docker startup after 2 minutes
pirms 9 gadiem
Morris Jobke
004d670d31
[autotest] wait for oracle docker container initialization instead of waiting a hard coded time
pirms 9 gadiem
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
pirms 9 gadiem
Thomas Müller
047b7a13a3
Let's wait a little longer until oracle finally is available
pirms 9 gadiem
Morris Jobke
b230b8e2c6
move the OCPSinceChecker.php to build/
pirms 9 gadiem
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
pirms 9 gadiem
Lukas Reschke
89b0bc1915
Store in array to allow paths with whitespace
pirms 9 gadiem
Lukas Reschke
8b0c223d6e
Add support for facade binary scripts
Fixes https://github.com/owncloud/core/issues/16296
pirms 9 gadiem
Lukas Reschke
e3ac4d7b37
Lint bash script using ShellCheck
Ref http://www.shellcheck.net/about.html
pirms 9 gadiem
Andreas Fischer
636d0635db
Combine autotest-hhvm.sh with autotest.sh
pirms 9 gadiem
Morris Jobke
c72ea81137
[autotest.sh] use the DATABASEHOST for the mysql DB drop
pirms 9 gadiem
Thomas Müller
d039e4fd25
Now using a special docker where the database for testing is already available
pirms 9 gadiem
Thomas Müller
a56e16fdaa
Oracle 11 XE is now fired up in a docker image - looks like we get back Oracle Testing on pull requests
pirms 9 gadiem
Thomas Müller
7181840665
Use occ to install ownCloud in autotest.sh
pirms 9 gadiem