Skip to content

Commit

Permalink
fix broken test and update to redislabs/redistimeseries:1.2.1 (#11)
Browse files Browse the repository at this point in the history
* fix broken test and update to redislabs/redistimeseries:1.2.1

* Improve readme
  • Loading branch information
palicao authored Jan 28, 2020
1 parent e460e24 commit 509d298
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ services:
- docker

before_install:
- docker pull redislabs/redistimeseries:1.0.3
- docker run -d -p 127.0.0.1:6379:6379 --name redis redislabs/redistimeseries:1.0.3
- docker pull redislabs/redistimeseries:1.2.1
- docker run -d -p 127.0.0.1:6379:6379 --name redis redislabs/redistimeseries:1.2.1
- yes | pecl install igbinary redis || true
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Use [Redis Time Series](https://oss.redislabs.com/redistimeseries/) in PHP!

![Code Climate maintainability](https://img.shields.io/codeclimate/coverage-letter/palicao/phpRedisTimeSeries?label=maintainability&logo=code-climate)
![Code Climate coverage](https://img.shields.io/codeclimate/coverage/palicao/phpRedisTimeSeries?logo=code-climate)
[![Maintainability](https://api.codeclimate.com/v1/badges/fea927b90378dd63a9d8/maintainability)](https://codeclimate.com/github/palicao/phpRedisTimeSeries/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/fea927b90378dd63a9d8/test_coverage)](https://codeclimate.com/github/palicao/phpRedisTimeSeries/test_coverage)
[![Build Status](https://travis-ci.com/palicao/phpRedisTimeSeries.svg?branch=master)](https://travis-ci.com/palicao/phpRedisTimeSeries)
[![Latest Stable Version](https://img.shields.io/packagist/v/palicao/php-redis-time-series.svg)](https://packagist.org/packages/palicao/php-redis-time-series)
![PHP version](https://img.shields.io/packagist/php-v/palicao/php-redis-time-series/2.0.0)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ services:
- .:/app
redis:
container_name: redis
image: redislabs/redistimeseries:1.0.3
image: redislabs/redistimeseries:1.2.1
6 changes: 3 additions & 3 deletions tests/Integration/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
use DateTime;
use DateTimeImmutable;
use Palicao\PhpRedisTimeSeries\AggregationRule;
use Palicao\PhpRedisTimeSeries\Client\RedisClient;
use Palicao\PhpRedisTimeSeries\Client\RedisConnectionParams;
use Palicao\PhpRedisTimeSeries\DateTimeUtils;
use Palicao\PhpRedisTimeSeries\Filter;
use Palicao\PhpRedisTimeSeries\Label;
use Palicao\PhpRedisTimeSeries\Client\RedisClient;
use Palicao\PhpRedisTimeSeries\Client\RedisConnectionParams;
use Palicao\PhpRedisTimeSeries\Sample;
use Palicao\PhpRedisTimeSeries\TimeSeries;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -156,7 +156,7 @@ public function testAddAndRetrieveKeysWithMultipleFilters(): void
public function testAddAndRetrieveWithDateTimeObjectAsMultiRangeWithMultipleFilters(): void
{
$currentDate = new DateTime();
$from = $currentDate->sub(new DateInterval('P1D'));
$from = (clone $currentDate)->sub(new DateInterval('P1D'));
$to = $currentDate;

$this->sut->create(
Expand Down

0 comments on commit 509d298

Please sign in to comment.