Add Drone CI

- Add drone test environment
- Add drone config
- apt phpunit
- Fix api.php
- Fix item.php
- Fix DBStructure
- Check if caching is possible during tests
This commit is contained in:
Philipp Holzer 2019-09-16 14:47:49 +02:00
parent b51dedd7e7
commit d5dd12b8f8
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
19 changed files with 321 additions and 34 deletions

View file

@ -37,7 +37,7 @@ class MemcacheCache extends Cache implements IMemoryCache
$memcache_host = $config->get('system', 'memcache_host');
$memcache_port = $config->get('system', 'memcache_port');
if (!$this->memcache->connect($memcache_host, $memcache_port)) {
if (!@$this->memcache->connect($memcache_host, $memcache_port)) {
throw new Exception('Expected Memcache server at ' . $memcache_host . ':' . $memcache_port . ' isn\'t available');
}
}