-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
40 lines (32 loc) · 1.3 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: php
dist: bionic
php:
- 7.2
- 7.3
- 7.4
env:
- REDIS_HOST=localhost REBLOOM_VERSION=2.2.0 # Redis 5.0.7
- REDIS_HOST=localhost REBLOOM_VERSION=2.2.4 # Redis 6.0.5
- REDIS_HOST=localhost REBLOOM_VERSION=edge
jobs:
allow_failures:
- env: REDIS_HOST=localhost REBLOOM_VERSION=edge
services:
- docker
before_install:
- docker pull redislabs/rebloom:${REBLOOM_VERSION}
- docker run -d -p 127.0.0.1:6379:6379 --name redis redislabs/rebloom:${REBLOOM_VERSION}
- yes | pecl upgrade igbinary redis || true
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$REBLOOM_VERSION" == "2.2.4" ]; then ./cc-test-reporter before-build; fi
script:
- composer install
- ./vendor/bin/phpunit
- ./vendor/bin/psalm
after_script:
- docker stop redis
- docker rm redis
- if [ $(phpenv version-name) = "7.4" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$REBLOOM_VERSION" == "2.2.4" ]; then ./cc-test-reporter after-build --coverage-input-type clover --id $CC_TEST_REPORTER_ID --exit-code $TRAVIS_TEST_RESULT; fi