Skip to content

Commit

Permalink
deprecate EOL php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 committed Dec 21, 2021
1 parent 564c3ef commit acb1a47
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0]
php: [7.4, 8.0, 8.1]
composer-flag: [prefer-lowest, prefer-stable]

name: php v${{ matrix.php }} - ${{ matrix.composer-flag }}
Expand All @@ -31,8 +31,11 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.composer-flag }} --no-interaction --no-progress

- name: Execute tests
- name: Execute tests and submit coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p build/logs
composer test -- --coverage-clover build/logs/clover.xml
[ -f build/logs/clover.xml ] && ./vendor/bin/php-coveralls -v || echo 'clover.xml not found.'
composer require --dev -n "php-coveralls/php-coveralls":"^2.5.2"
./vendor/bin/php-coveralls -v
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ If you will be running your code on a 32 bit system or will be working with larg
For debian/ubuntu you can install the extension with one of these commands:

```bash
apt-get install php7.0-gmp
apt-get install php7.1-gmp
apt-get install php7.2-gmp
apt-get install php7.3-gmp
apt-get install php7.4-gmp
apt-get install php8.0-gmp
apt-get install php8.1-gmp
```

## Usage
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
}
],
"require": {
"php": ">=7.0.0",
"php": "^7.4||^8.0",
"phpseclib/phpseclib": "^3.0",
"symfony/console": "^3.0|^4.0|^5.0"
"symfony/console": "^5.0||^6.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0|^7.0|^8.0",
"php-coveralls/php-coveralls": "^2.1"
"phpunit/phpunit": "^9.5.10"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 9 additions & 7 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="false">
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Optimus">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit acb1a47

Please sign in to comment.