Skip to content

Commit

Permalink
update version for php8
Browse files Browse the repository at this point in the history
  • Loading branch information
laufhannes committed Oct 18, 2021
1 parent 3d312b1 commit 764b808
Show file tree
Hide file tree
Showing 15 changed files with 3,328 additions and 780 deletions.
28 changes: 28 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

$header = <<<EOF
This file is part of the Runalyze DEM Reader.
(c) RUNALYZE <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;

return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'header_comment' => [
'header' => $header
],
'ordered_imports' => true,
'php_unit_construct' => true,
'strict_comparison' => true,
'strict_param' => true,
'phpdoc_separation' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.DIRECTORY_SEPARATOR.'src')
)
;
27 changes: 0 additions & 27 deletions .php_cs

This file was deleted.

4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 8.0

sudo: false

Expand Down
2 changes: 1 addition & 1 deletion bin/download-testfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for file in srtm_38_03 srtm_38_02 srtm_67_19 srtm_36_02 srtm_40_17 srtm_22_04
do
if [ ! -f tests/testfiles/${file}.tif ]
then
curl http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/${file}.zip > tests/testfiles/${file}.zip
curl https://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/${file}.zip > tests/testfiles/${file}.zip
unzip -o tests/testfiles/${file}.zip ${file}.tif -d tests/testfiles
rm -rf tests/testfiles/${file}.zip
fi
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "runalyze/dem-reader",
"description": "Read digital elevation files such as GeoTIFF files for srtm data or similar.",
"version": "1.2.0",
"license": "MIT",
"require": {
"php": ">=5.5.9"
"php": ">=8.0"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"friendsofphp/php-cs-fixer": "^1.11"
"phpunit/phpunit": "^9.0",
"friendsofphp/php-cs-fixer": "^3.2"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 764b808

Please sign in to comment.