-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
475 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-php/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# Specify the version you desire here | ||
- image: circleci/php:7.4-apache | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
# Using the RAM variation mitigates I/O contention | ||
# for database intensive operations. | ||
# - image: circleci/mysql:5.7-ram | ||
# | ||
# - image: redis:2.8.19 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: sudo apt-get update -y # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev | ||
- run: sudo docker-php-ext-install zip | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
# "composer.lock" can be used if it is committed to the repo | ||
- v1-dependencies-{{ checksum "composer.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: composer selfupdate && composer install -n --prefer-dist | ||
|
||
- save_cache: | ||
key: v1-dependencies-{{ checksum "composer.json" }} | ||
paths: | ||
- ./vendor | ||
|
||
# prepare the database | ||
# - run: touch storage/testing.sqlite | ||
# - run: php artisan migrate --env=testing --database=sqlite_testing --force | ||
|
||
# run tests with phpunit or codecept | ||
- run: ./vendor/bin/phpunit | ||
# - run: ./vendor/bin/codecept build | ||
# - run: ./vendor/bin/codecept run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/vendor | ||
composer.lock | ||
*.cache | ||
clover.xml | ||
junit-logfile.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
$finder = Symfony\Component\Finder\Finder::create() | ||
->notPath('vendor') | ||
->in(__DIR__) | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@PSR2' => true, | ||
'ordered_imports' => ['sortAlgorithm' => 'alpha'], | ||
'no_unused_imports' => true, | ||
'psr4' => true, | ||
]) | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
env: | ||
global: | ||
- COMPOSER_MEMORY_LIMIT=-1 | ||
- XDEBUG_MODE=coverage | ||
|
||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- nightly | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
|
||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php -n composer.phar install --dev --verbose | ||
- composer selfupdate | ||
- composer install | ||
|
||
script: phpunit | ||
script: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,51 @@ | ||
build: false | ||
|
||
platform: x86 | ||
|
||
clone_folder: c:\projects\arraydiffmultidimensional | ||
version: appveyor-{branch}-{build} | ||
shallow_clone: false | ||
clone_folder: C:\projects\app | ||
|
||
environment: | ||
matrix: | ||
- PHP_DOWNLOAD_FILE: php-5.5.9-nts-Win32-VC11-x86.zip | ||
- PHP_DOWNLOAD_FILE: php-5.6.4-nts-Win32-VC11-x86.zip | ||
- PHP_DOWNLOAD_FILE: php-7.0.0-nts-Win32-VC14-x86.zip | ||
- PHP_DOWNLOAD_FILE: php-7.1.0-nts-Win32-VC14-x86.zip | ||
- php_ver: 8.0.0 | ||
- php_ver: 7.4.13 | ||
- php_ver: 7.3.25 | ||
- php_ver: 7.2.34 | ||
- php_ver: 7.1.33 | ||
- php_ver: 7.0.33 | ||
- php_ver: 5.6.40 | ||
- php_ver: 5.5.38 | ||
# - php_ver: 5.4.45 | ||
# - php_ver: 5.3.29 | ||
|
||
cache: | ||
- '%APPDATA%\Composer' | ||
- '%LOCALAPPDATA%\Composer' | ||
- C:\tools\php -> .appveyor.yml | ||
- C:\tools\composer.phar -> .appveyor.yml | ||
|
||
init: | ||
- SET PATH=c:\php;%PATH% | ||
- SET COMPOSER_NO_INTERACTION=1 | ||
- SET PHP=1 | ||
- SET PATH=C:\tools\php;%PATH% | ||
|
||
install: | ||
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php) | ||
- cd c:\php | ||
- IF %PHP%==1 appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem | ||
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/%PHP_DOWNLOAD_FILE% | ||
- IF %PHP%==1 7z x %PHP_DOWNLOAD_FILE% -y >nul | ||
- IF %PHP%==1 del /Q *.zip | ||
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat | ||
- IF %PHP%==1 copy /Y php.ini-development php.ini | ||
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini | ||
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini | ||
- IF %PHP%==1 echo extension_dir=ext >> php.ini | ||
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_intl.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_pdo_sqlite.dll >> php.ini | ||
- IF %PHP%==1 echo curl.cainfo=c:\php\cacert.pem >> php.ini | ||
- appveyor DownloadFile https://getcomposer.org/composer.phar | ||
- cd c:\projects\arraydiffmultidimensional | ||
- mkdir %APPDATA%\Composer | ||
- composer update --prefer-dist --no-progress --ansi | ||
- ps: Set-Service wuauserv -StartupType Manual | ||
- IF NOT EXIST C:\tools\php (choco install --yes --allow-empty-checksums php --version %php_ver% --params '/InstallDir:C:\tools\php') | ||
- cd C:\tools\php | ||
- copy php.ini-production php.ini | ||
- echo date.timezone="UTC" >> php.ini | ||
- echo memory_limit=512M >> php.ini | ||
- echo extension_dir=ext >> php.ini | ||
- echo extension=php_curl.dll >> php.ini | ||
- echo extension=php_openssl.dll >> php.ini | ||
- echo extension=php_mbstring.dll >> php.ini | ||
- IF NOT EXIST C:\tools\composer.phar (cd C:\tools && appveyor DownloadFile https://getcomposer.org/composer.phar) | ||
- php C:\tools\composer.phar --version | ||
- cd C:\projects\app | ||
|
||
before_test: | ||
- cd C:\projects\app | ||
- php C:\tools\composer.phar selfupdate | ||
- php C:\tools\composer.phar update --optimize-autoloader --no-interaction --no-progress --prefer-stable --no-ansi | ||
- php C:\tools\composer.phar info -D | sort | ||
|
||
test_script: | ||
- cd c:\projects\arraydiffmultidimensional | ||
- vendor\bin\phpunit.bat --verbose | ||
- cd C:\projects\app | ||
- vendor\bin\phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<phpunit | ||
bootstrap="vendor/autoload.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="true" | ||
verbose="true" | ||
stderr="true" | ||
> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./src</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-clover" target="clover.xml"/> | ||
<log type="junit" target="junit-logfile.xml"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.