Skip to content

[HELP] Run tests #4799

@gperdomor

Description

@gperdomor

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions