mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
Add android build on travis (#1981)
* Add build for android in travis CI. * Fix review findings. Change from __ANDORID__ to POCO_ANDROID * Add android test * Fix compile issue after rebase * Ignore test big ping when its failing
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
d162110e67
commit
9feabc7723
@@ -32,6 +32,9 @@ RedisTest::RedisTest(const std::string& name):
|
||||
_host("localhost"),
|
||||
_port(6379)
|
||||
{
|
||||
#ifdef POCO_ANDROID
|
||||
_host = "10.0.2.2";
|
||||
#endif
|
||||
if (!_connected)
|
||||
{
|
||||
try
|
||||
@@ -954,6 +957,7 @@ void RedisTest::testPING()
|
||||
fail(e.message());
|
||||
}
|
||||
|
||||
#ifndef OLD_REDIS_VERSION
|
||||
// A PING with a custom string responds with a bulk string
|
||||
command.add("Hello");
|
||||
try
|
||||
@@ -966,7 +970,7 @@ void RedisTest::testPING()
|
||||
{
|
||||
fail(e.message());
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -3002,6 +3006,5 @@ CppUnit::Test* RedisTest::suite()
|
||||
CppUnit_addTest(pSuite, RedisTest, testRPOPLPUSH);
|
||||
CppUnit_addTest(pSuite, RedisTest, testRPUSH);
|
||||
CppUnit_addTest(pSuite, RedisTest, testPool);
|
||||
|
||||
return pSuite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user