Skip to content

Commit e6a3f33

Browse files
authored
Merge pull request #13 from SimonFrings/ci
Support PHP 8 and use GitHub actions for continuous integration (CI)
2 parents b258096 + 6dfedbb commit e6a3f33

File tree

4 files changed

+49
-30
lines changed

4 files changed

+49
-30
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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php:
13+
- 8.0
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+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
- run: composer install
30+
- run: vendor/bin/phpunit --coverage-text
31+
if: ${{ matrix.php >= 7.3 }}
32+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
33+
if: ${{ matrix.php < 7.3 }}
34+
35+
PHPUnit-hhvm:
36+
name: PHPUnit (HHVM)
37+
runs-on: ubuntu-18.04
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: azjezz/setup-hhvm@v1
41+
with:
42+
version: lts-3.30
43+
- run: hhvm $(which composer) install
44+
- run: hhvm vendor/bin/phpunit --coverage-text

.travis.yml

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

README.md

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

35
Async [Simple Service Discovery Protocol (SSDP)](http://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol), built on top of [ReactPHP](https://reactphp.org/).
46

@@ -63,7 +65,7 @@ The recommended way to install this library is [through composer](http://getcomp
6365
```
6466

6567
This project aims to run on any platform and thus does not require any PHP
66-
extensions and supports running on legacy PHP 5.3 through current PHP 7+ and
68+
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
6769
HHVM.
6870
It's *highly recommended to use PHP 7+* for this project.
6971

0 commit comments

Comments
 (0)