-
Notifications
You must be signed in to change notification settings - Fork 11
Adding tests on appveyor #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7c05870
Adding tests on appveyor
Nyholm 0be4fe9
typo
Nyholm 8df03fb
Updating test command
Nyholm 8033eda
Updating test command
Nyholm 72bd97e
Updated tests to avoid specify filename
Nyholm 32429d8
Specify filename
Nyholm 1923c2a
throwing in some swedish characters
Nyholm da3ee19
and some greek
Nyholm 7d88df5
test with ä
Nyholm 10ce8b0
Applied fix with pathinfo
Nyholm 49cb199
Better tests
Nyholm ac1ca49
disable weird locale
Nyholm 98c9f25
Using pathinfo
Nyholm 214152e
Updated tests
Nyholm 241d272
Added function to get basename
Nyholm bbf282b
style fix
Nyholm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,39 @@ | ||
build: false | ||
platform: | ||
- x86 | ||
- x64 | ||
|
||
clone_folder: c:\projects\php-http\multipart-stream-builder | ||
|
||
cache: | ||
- c:\tools\php -> appveyor.yml | ||
|
||
init: | ||
- SET PATH=c:\php;%PATH% | ||
- SET COMPOSER_NO_INTERACTION=1 | ||
- SET PHP=1 | ||
|
||
|
||
install: | ||
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php) | ||
- cd c:\php | ||
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.0.0-nts-Win32-VC14-x86.zip | ||
- IF %PHP%==1 7z x php-7.0.0-nts-Win32-VC14-x86.zip -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_openssl.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini | ||
- appveyor DownloadFile https://getcomposer.org/composer.phar | ||
- cd c:\projects\php-http\multipart-stream-builder | ||
- mkdir %APPDATA%\Composer | ||
- composer update --prefer-dist --no-progress --ansi | ||
|
||
test_script: | ||
- cd c:\projects\php-http\multipart-stream-builder | ||
- vendor\bin\phpunit.bat --verbose | ||
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @sagikazarmark and @dbu
Is this function overkill or is it the way to go if we want to be independent of the locale?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quite horrible that php does not provide something that "just works" but it does look correct to me, so i guess lets go with this.