averias/phpredis-bloom

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

cache:
  directories:
    - $HOME/.composer/cache/files

php:
  - '7.2'

services:
  - docker

install:
  - printf "\n" | pecl install redis-5.0.1
  - composer self-update
  - composer clear-cache
  - composer install --prefer-dist

before_install:
  - docker pull redislabs/rebloom:edge
  - docker run --name redislab-rebloom -it -d -p 127.0.0.1:6379:6379 redislabs/rebloom:edge
  - docker ps -a

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - mkdir -p build/coverage
  - mkdir -p build/logs

script:
  - ./vendor/bin/phpunit

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT