Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2f7bb68
Unify templated files
nibra Dec 15, 2021
6cfddd0
Adjust tests path
nibra Dec 15, 2021
57a837f
Build: Ignore PHP 5.4 and 5.5
nibra Dec 15, 2021
0b14aee
Add drone credentials
nibra Dec 16, 2021
cf3f5db
Build: Special treatment of 5.3-lowest
nibra Dec 16, 2021
a44cf27
Style: Loosen the constraint to respect naming conventions
nibra Dec 16, 2021
1bf8fd2
Build: Introducing loose and strict code style check
nibra Dec 16, 2021
6437c44
Build: Exclude one more rule from loose code style check
nibra Dec 16, 2021
0393870
Build: Don't apply code style check to library
nibra Dec 16, 2021
33e46cc
Build: Fix paths
nibra Dec 16, 2021
25c1c87
Build: Check for PHP 8.1 compatibility
nibra Dec 16, 2021
2ed6196
Build: Allow newer versions of PHPUnit
nibra Dec 17, 2021
e4b3180
Revert "Build: Allow newer versions of PHPUnit"
nibra Dec 17, 2021
adc1b24
Build: Allow PHP 8 and PHPUnit up to version 6
nibra Dec 17, 2021
6ac8e7b
Fix: Test the right thing
nibra Dec 18, 2021
898aade
Tests: Don't use phpunit.xml to provide PHP values
nibra Dec 18, 2021
aed7f27
Build: Enforce PHPUnit >= 8.0 for PHP >= 8
nibra Dec 18, 2021
97ae80e
Unify templated files
nibra Dec 15, 2021
a6638f8
Adjust tests path
nibra Dec 15, 2021
e63924a
Build: Ignore PHP 5.4 and 5.5
nibra Dec 15, 2021
40156c2
Add drone credentials
nibra Dec 16, 2021
8d65a44
Build: Special treatment of 5.3-lowest
nibra Dec 16, 2021
73634d0
Style: Loosen the constraint to respect naming conventions
nibra Dec 16, 2021
5e2eba9
Build: Introducing loose and strict code style check
nibra Dec 16, 2021
847f936
Build: Exclude one more rule from loose code style check
nibra Dec 16, 2021
0c8ea30
Build: Don't apply code style check to library
nibra Dec 16, 2021
718c7ac
Build: Fix paths
nibra Dec 16, 2021
211052a
Build: Check for PHP 8.1 compatibility
nibra Dec 16, 2021
a0c7656
Build: Allow newer versions of PHPUnit
nibra Dec 17, 2021
84c4730
Revert "Build: Allow newer versions of PHPUnit"
nibra Dec 17, 2021
ec8f58f
Build: Allow PHP 8 and PHPUnit up to version 6
nibra Dec 17, 2021
c9c6380
Fix: Test the right thing
nibra Dec 18, 2021
96de4d6
Tests: Don't use phpunit.xml to provide PHP values
nibra Dec 18, 2021
5e9f599
Build: Enforce PHPUnit >= 8.0 for PHP >= 8
nibra Dec 18, 2021
fb1488b
Deps: Set minimum stability to dev
nibra Dec 20, 2021
b7b380f
Build: Update environment
nibra Jan 25, 2022
7db967c
Deps: Unify dependencies to PHP, PHPUnit and framework packages
nibra Jan 25, 2022
c80f967
Merge commit 'aed7f27fcff58afe13aee27e24e3ce1a5c5876ae' into prev-uni…
nibra Jan 25, 2022
9b0ac28
Tests: Provide separate tests for PHP < 7.1 and PHP 7.1+
nibra Jan 25, 2022
ef74c08
Tests: Fix signature
nibra Jan 25, 2022
7c22f4d
Tests: Fix rtrim testcase
nibra Jan 25, 2022
fa2611e
Tests: Fix namespace for exception
nibra Jan 25, 2022
13305ef
Fix: Cast parameters
nibra Jan 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
build: false
platform:
- x64
clone_folder: C:\projects\filesystem

branches:
except:
- gh-pages

## Build matrix for lowest and highest possible targets
environment:
PHPBuild: "x64"
VC: "vc15"
WINCACHE: "2.0.0.8"
matrix:
- php_ver_target: 5.3.10
- php_ver_target: 5.3.29
- php_ver_target: 5.4.45
- php_ver_target: 7.0.33
- php_ver_target: 7.1.33
- php_ver_target: 7.2.34
- php_ver_target: 7.3.33
- php_ver_target: 7.4.27
- php_ver_target: 8.0.15
- php_ver_target: 8.1.2

init:
- SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1 # This var relates to caching the php install
- SET ANSICON=121x90 (121x90)

## Install PHP and composer, and run the appropriate composer command
install:
- IF EXIST C:\tools\php (SET PHP=0)
- ps: >-
If ($env:PHP -eq "1") {
appveyor-retry cinst php --version=$env:php_ver_target --package-parameters='""/InstallDir:C:\tools\php""' --ignore-checksums -y --no-progress --limit-output
}
- cd C:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo extension=php_ftp.dll >> php.ini
- IF %PHP%==1 echo extension=php_gd2.dll >> php.ini
- IF %PHP%==1 echo extension=php_gmp.dll >> php.ini
- IF %PHP%==1 echo extension=php_pgsql.dll >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo zend_extension=php_opcache.dll >> php.ini
- IF %PHP%==1 echo opcache.enable_cli=1 >> php.ini
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- IF %PHP%==1 php -r "readfile('http://getcomposer.org/installer');" | php
- cd C:\projects\filesystem
- IF NOT %php_ver_target%=="8.0.0" composer update --prefer-stable --no-progress
- IF %php_ver_target%=="8.0.0" composer update --prefer-stable --no-progress --ignore-platform-req=php

test_script:
- cd C:\projects\filesystem
- vendor\bin\phpunit
23 changes: 15 additions & 8 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ local composer(phpversion, params) = {
volumes: volumes,
commands: [
"php -v",
"composer --version",
"composer update " + params,
]
};

local phpunit(phpversion) = {
name: "PHPUnit",
image: "joomlaprojects/docker-images:php" + phpversion,
[if phpversion == "8.0" then "failure"]: "ignore",
commands: ["vendor/bin/phpunit"]
};

Expand All @@ -52,17 +50,27 @@ local pipeline(name, phpversion, params) = {
volumes: volumes,
commands: [
"php -v",
"composer update",
"composer update --prefer-stable",
"composer require phpmd/phpmd phpstan/phpstan"
]
},
{
name: "phpcs",
name: "phpcs (loose)",
image: "joomlaprojects/docker-images:php7.4",
depends: [ "composer" ],
commands: [
"vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards",
"vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/"
"vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/Inflector.php src/Normalise.php src/String.php src/StringHelper.php"
]
},
{
name: "phpcs (strict)",
image: "joomlaprojects/docker-images:php7.4",
depends: [ "composer" ],
failure: "ignore",
commands: [
"vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards",
"vendor/bin/phpcs -p --report=full --extensions=php --standard=Joomla src/Inflector.php src/Normalise.php src/String.php src/StringHelper.php"
]
},
{
Expand Down Expand Up @@ -126,13 +134,12 @@ local pipeline(name, phpversion, params) = {
]
},
pipeline("5.3", "5.3", "--prefer-stable"),
pipeline("5.4", "5.4", "--prefer-stable"),
pipeline("5.5", "5.5", "--prefer-stable"),
pipeline("5.6", "5.6", "--prefer-stable"),
pipeline("7.0", "7.0", "--prefer-stable"),
pipeline("7.1", "7.1", "--prefer-stable"),
pipeline("7.2", "7.2", "--prefer-stable"),
pipeline("7.3", "7.3", "--prefer-stable"),
pipeline("7.4", "7.4", "--prefer-stable"),
pipeline("8.0", "8.0", "--ignore-platform-reqs --prefer-stable")
pipeline("8.0", "8.0", "--prefer-stable"),
pipeline("8.1", "8.1", "--prefer-stable")
]
Loading