Skip to content

Commit d540d84

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent a3630f1 commit d540d84

File tree

5 files changed

+52
-36
lines changed

5 files changed

+52
-36
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.gitattributes export-ignore
2+
/.github/workflows/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
44
/examples/ export-ignore
55
/phpunit.xml.dist export-ignore
66
/phpunit.xml.legacy export-ignore

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
name: PHPUnit (PHP ${{ matrix.php }})
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
php:
14+
- 7.4
15+
- 7.3
16+
- 7.2
17+
- 7.1
18+
- 7.0
19+
- 5.6
20+
- 5.5
21+
- 5.4
22+
- 5.3
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: xdebug
29+
- run: composer install
30+
- run: docker run --net=host -d redis
31+
- run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
32+
if: ${{ matrix.php >= 7.3 }}
33+
- run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
34+
if: ${{ matrix.php < 7.3 }}
35+
36+
PHPUnit-hhvm:
37+
name: PHPUnit (HHVM)
38+
runs-on: ubuntu-18.04
39+
continue-on-error: true
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: azjezz/setup-hhvm@v1
43+
with:
44+
version: lts-3.30
45+
- run: hhvm $(which composer) install
46+
- run: docker run --net=host -d redis
47+
- run: REDIS_URI=localhost:6379 hhvm vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/vendor
21
/composer.lock
2+
/vendor/

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# clue/reactphp-redis [![Build Status](https://travis-ci.org/clue/reactphp-redis.svg?branch=master)](https://travis-ci.org/clue/reactphp-redis)
1+
# clue/reactphp-redis
2+
3+
[![CI status](https://github.com/clue/reactphp-redis/workflows/CI/badge.svg)](https://github.com/clue/reactphp-redis/actions)
24

35
Async [Redis](https://redis.io/) client implementation, built on top of [ReactPHP](https://reactphp.org/).
46

0 commit comments

Comments
 (0)