Skip to content

Commit 14fe6ef

Browse files
Fixed tests on HHVM (#70)
1 parent da2e6f5 commit 14fe6ef

File tree

5 files changed

+51
-19
lines changed

5 files changed

+51
-19
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/.gitignore export-ignore
44
/.gitattributes export-ignore
55
/.github export-ignore
6-
/.travis.yml export-ignore
76
/Makefile export-ignore
87
/phpunit.xml.dist export-ignore
98
/tests 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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,33 @@ jobs:
9191

9292
- name: Execute PHPUnit
9393
run: vendor\bin\phpunit.bat
94+
95+
test_hhvm:
96+
name: HHVM ${{ matrix.hhvm }}
97+
runs-on: ubuntu-16.04
98+
99+
strategy:
100+
matrix:
101+
hhvm: ["3.15", "3.18", "3.21", "3.24"]
102+
103+
steps:
104+
- name: Checkout Code
105+
uses: actions/checkout@v2
106+
107+
- name: Install HHVM
108+
shell: bash
109+
run: sudo .github/bin/hhvm.sh ${{ matrix.hhvm }}
110+
111+
- name: Install Composer
112+
shell: bash
113+
run: sudo .github/bin/composer.sh
114+
115+
- name: Install Dependencies
116+
uses: nick-invision/retry@v1
117+
with:
118+
timeout_minutes: 5
119+
max_attempts: 5
120+
command: composer update --no-interaction --no-progress
121+
122+
- name: Execute PHPUnit
123+
run: hhvm vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)