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:
Joerg-Christian Boehme
2018-02-27 01:54:40 +01:00
committed by Aleksandar Fabijanic
parent d162110e67
commit 9feabc7723
36 changed files with 594 additions and 220 deletions

View File

@@ -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;
}