Skip to content

Commit 543f87a

Browse files
Merge branch '2.6' into 3.6
2 parents 2065bed + 919c01a commit 543f87a

File tree

6 files changed

+55
-55
lines changed

6 files changed

+55
-55
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/.github export-ignore
77
/.gitignore export-ignore
88
/.github export-ignore
9-
/.travis.yml export-ignore
109
/phpunit.xml.dist export-ignore
1110
/README.md export-ignore
1211
/UPGRADING.md export-ignore

.github/bin/composer.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
EXPECTED_CHECKSUM="$(wget -q -O - https://composer.github.io/installer.sig)"
4+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
5+
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
6+
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
7+
>&2 echo 'ERROR: Invalid installer checksum'
8+
rm composer-setup.php
9+
exit 1
10+
else
11+
php composer-setup.php --install-dir="/usr/bin" --filename=composer
12+
RESULT=$?
13+
rm composer-setup.php
14+
composer config platform.php 5.6.50
15+
exit $RESULT
16+
fi

.github/bin/hhvm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
echo "deb https://dl.hhvm.com/ubuntu $(lsb_release -sc)-lts-$1 main" >> /etc/apt/sources.list
4+
apt-get update
5+
apt-get --allow-downgrades --reinstall install hhvm/$(lsb_release -sc)-lts-$1

.github/workflows/tests.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
pull_request:
66

77
jobs:
8-
tests:
8+
php:
99
name: PHP ${{ matrix.php }}
1010
runs-on: ubuntu-20.04
1111

1212
strategy:
1313
matrix:
14-
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
14+
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
1515

1616
steps:
1717
- name: Checkout Code
@@ -40,8 +40,38 @@ jobs:
4040
with:
4141
timeout_minutes: 5
4242
max_attempts: 5
43-
command: composer update --no-interaction --no-progress --ignore-platform-reqs
43+
command: composer update --no-interaction --no-progress --ignore-platform-req=php
4444
if: "matrix.php >= 8"
4545

4646
- name: Execute PHPUnit
4747
run: vendor/bin/phpunit
48+
49+
hhvm:
50+
name: HHVM ${{ matrix.hhvm }}
51+
runs-on: ubuntu-16.04
52+
53+
strategy:
54+
matrix:
55+
hhvm: ["3.15", "3.18", "3.21", "3.24", "3.27", "3.30"]
56+
57+
steps:
58+
- name: Checkout Code
59+
uses: actions/checkout@v2
60+
61+
- name: Install HHVM
62+
shell: bash
63+
run: sudo .github/bin/hhvm.sh ${{ matrix.hhvm }}
64+
65+
- name: Install Composer
66+
shell: bash
67+
run: sudo .github/bin/composer.sh
68+
69+
- name: Install Dependencies
70+
uses: nick-invision/retry@v1
71+
with:
72+
timeout_minutes: 5
73+
max_attempts: 5
74+
command: composer update --no-interaction --no-progress
75+
76+
- name: Execute PHPUnit
77+
run: hhvm vendor/bin/phpunit

.travis.yml

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require-dev": {
2424
"ext-filter": "*",
2525
"ext-pcre": "*",
26-
"phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0"
26+
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20"
2727
},
2828
"autoload": {
2929
"psr-4": {

0 commit comments

Comments
 (0)