Skip to content

Commit d9e1bc6

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

File tree

5 files changed

+47
-33
lines changed

5 files changed

+47
-33
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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.0
15+
- 5.6
16+
- 5.5
17+
- 5.4
18+
- 5.3
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
coverage: xdebug
25+
- run: composer install
26+
- run: vendor/bin/phpunit --coverage-text
27+
28+
PHPUnit-hhvm:
29+
name: PHPUnit (HHVM)
30+
runs-on: ubuntu-18.04
31+
continue-on-error: true
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: azjezz/setup-hhvm@v1
35+
with:
36+
version: lts-3.30
37+
- run: hhvm $(which composer) require phpunit/phpunit:^5 --dev --no-interaction
38+
- run: hhvm $(which composer) install
39+
- run: 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
1+
/vendor/
22
/composer.lock

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

35
Async SOCKS proxy connector client and server implementation, tunnel any TCP/IP-based
46
protocol through a SOCKS5 or SOCKS4(a) proxy server, built on top of

tests/FunctionalTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testConnectionSocks5()
8787
/** @group internet */
8888
public function testConnectionSocksOverTls()
8989
{
90-
if (!function_exists('stream_socket_enable_crypto')) {
90+
if (!function_exists('stream_socket_enable_crypto') || defined('HHVM_VERSION')) {
9191
$this->markTestSkipped('Required function does not exist in your environment (HHVM?)');
9292
}
9393

@@ -112,7 +112,7 @@ public function testConnectionSocksOverTls()
112112
*/
113113
public function testConnectionSocksOverTlsUsesPeerNameFromSocksUri()
114114
{
115-
if (!function_exists('stream_socket_enable_crypto')) {
115+
if (!function_exists('stream_socket_enable_crypto') || defined('HHVM_VERSION')) {
116116
$this->markTestSkipped('Required function does not exist in your environment (HHVM?)');
117117
}
118118

@@ -416,7 +416,7 @@ public function testConnectorInvalidUnboundPortTimeout()
416416
/** @group internet */
417417
public function testSecureConnectorOkay()
418418
{
419-
if (!function_exists('stream_socket_enable_crypto')) {
419+
if (!function_exists('stream_socket_enable_crypto') || defined('HHVM_VERSION')) {
420420
$this->markTestSkipped('Required function does not exist in your environment (HHVM?)');
421421
}
422422

@@ -440,7 +440,7 @@ public function testSecureConnectorToBadSslWithVerifyFails()
440440
/** @group internet */
441441
public function testSecureConnectorToBadSslWithoutVerifyWorks()
442442
{
443-
if (!function_exists('stream_socket_enable_crypto')) {
443+
if (!function_exists('stream_socket_enable_crypto') || defined('HHVM_VERSION')) {
444444
$this->markTestSkipped('Required function does not exist in your environment (HHVM?)');
445445
}
446446

0 commit comments

Comments
 (0)