Skip to content

Commit f5cf321

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

File tree

5 files changed

+38
-29
lines changed

5 files changed

+38
-29
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
/tests/ export-ignore

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-20.04
14+
- windows-2019
15+
php:
16+
- 7.4
17+
- 7.3
18+
- 7.2
19+
- 7.1
20+
- 7.0
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
extensions: zlib
28+
coverage: xdebug
29+
- run: composer install
30+
- run: vendor/bin/phpunit --coverage-text

.travis.yml

Lines changed: 0 additions & 27 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-zlib [![Build Status](https://travis-ci.org/clue/reactphp-zlib.svg?branch=master)](https://travis-ci.org/clue/reactphp-zlib)
1+
# clue/reactphp-zlib
2+
3+
[![CI status](https://github.com/clue/reactphp-zlib/workflows/CI/badge.svg)](https://github.com/clue/reactphp-zlib/actions)
24

35
Streaming zlib compressor and decompressor for [ReactPHP](https://reactphp.org/),
46
supporting compression and decompression of GZIP, ZLIB and raw DEFLATE formats.

tests/GzipCompressorTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public function setUp()
1515

1616
public function testCompressEmpty()
1717
{
18+
if (DIRECTORY_SEPARATOR === '\\') {
19+
$this->markTestSkipped('Not supported on Windows');
20+
}
21+
1822
$os = DIRECTORY_SEPARATOR === '\\' ? "\x0a" : "\x03"; // NTFS(0x0a) or UNIX (0x03)
1923
$this->compressor->on('data', $this->expectCallableOnceWith("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00" . $os . "\x03\x00" . "\x00\x00\x00\x00\x00\x00\x00\x00"));
2024
$this->compressor->on('end', $this->expectCallableOnce());

0 commit comments

Comments
 (0)