Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] Run tests #4799

Closed
gperdomor opened this issue May 10, 2017 · 1 comment
Closed

[HELP] Run tests #4799

gperdomor opened this issue May 10, 2017 · 1 comment

Comments

@gperdomor
Copy link

Hi guys... I wanna run tests using docker... How i can do that?

I use gitlab so i generate my .gitlab-ci.ymlbased on the drone configuration but i have some issues... For example, this is the log of the nodb-codecov test

1) Test\Memcache\RedisTest
RedisException: Redis server went away in /builds/cloud/server/lib/private/Memcache/Redis.php:64
Stack trace:
#0 /builds/cloud/server/lib/private/Memcache/Redis.php(64): Redis->set('Yyzs2SCFe1s81p1...', '"1XDiBosmG3Tw7"')
#1 /builds/cloud/server/tests/lib/Memcache/RedisTest.php(30): OC\Memcache\Redis->set('p1ofMi7gBtmP8', '1XDiBosmG3Tw7')
#2 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(703): Test\Memcache\RedisTest::setUpBeforeClass()
#3 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#4 phar:///usr/local/bin/phpunit/phpunit/TextUI/TestRunner.php(465): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#5 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(185): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#6 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(115): PHPUnit_TextUI_Command->run(Array, true)
#7 /usr/local/bin/phpunit(569): PHPUnit_TextUI_Command::main()
#8 {main}

This is the content of my .gitlab-ci.yml

The branch is from the last stable release (11.0.3)

@MorrisJobke
Copy link
Member

This indicates, that the redis server is not available. By default we require it in the autotest to listen at localhost and the default port. Is this the case?

See https://github.com/nextcloud/server/blob/master/tests/redis.config.php

I hope that helps.

What is the background of porting it to gitlab CI?

I will close this ticket here, but feel free to ask additional questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants