From 84f209bbf3965cfb86595f0beddfae525bc9a589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antal=20=C3=81ron?= Date: Wed, 20 Sep 2017 15:04:54 +0200 Subject: [PATCH 1/2] Added appveyor.yml --- appveyor.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..83f93f6 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,59 @@ +build: false + +platform: + - x64 + +clone_folder: c:\projects\mb-similar-text + +environment: + matrix: + - dependencies: lowest + php_ver_target: 5.6.30 + - dependencies: highest + php_ver_target: 5.6.30 + - dependencies: lowest + php_ver_target: 7.0.18 + - dependencies: highest + php_ver_target: 7.0.18 + - dependencies: lowest + php_ver_target: 7.1.4 + - dependencies: highest + php_ver_target: 7.1.4 + +## Cache composer, chocolatey and php bits +cache: + - '%LOCALAPPDATA%\Composer\files -> composer.lock' + - composer.phar + # Cache chocolatey packages + - C:\ProgramData\chocolatey\bin -> .appveyor.yml + - C:\ProgramData\chocolatey\lib -> .appveyor.yml + # Cache php install + - c:\tools\php -> .appveyor.yml + +init: + - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH% + - SET COMPOSER_NO_INTERACTION=1 + - SET PHP=1 # This var is connected to PHP install cache + +install: + - IF EXIST c:\tools\php (SET PHP=0) # Checks for the PHP install being cached + - ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','') + - 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_intl.dll >> php.ini + - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini + - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat + - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar + - cd c:\projects\mb-similar-text + - IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n + - IF %dependencies%==highest appveyor-retry composer update --no-progress --profile -n + - composer show + +## Run the actual test +test_script: + - cd c:\projects\mb-similar-text + - vendor/bin/phpunit -c phpunit.xml.dist From a3418a029530ed1a91bab961abd1ca743cb0853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antal=20=C3=81ron?= Date: Wed, 20 Sep 2017 15:15:03 +0200 Subject: [PATCH 2/2] Added github files --- .github/ISSUE_TEMPLATE.md | 9 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..26faf9c --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,9 @@ +| Q | A +| ---------------- | ----- +| Bug report? | yes/no +| Feature request? | yes/no +| BC break report? | yes/no + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..305f56d --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,12 @@ +| Q | A +| ------------- | --- +| Bug fix? | yes/no +| New feature? | yes/no +| BC break | yes/no +| Tests passed? | yes/no +| Fixed tickets | #... +| License | MIT + +