Commit graph

56 commits

Author SHA1 Message Date
Henrique Moody 66f5475463
Update PHP support
Due to the current status of the development of the library, it seems
like we will be supporting version 1.1 for a long time. Even when we
release version 2.0 we will still give support for version 1.1 for a
while.

This commit will make sure that version 1.1 is fully supported for PHP
7.2 and 7.3. Also, it will remove the support for HHVM since it will not
keep the compatibility with PHP anymore [1].

In order to make that happen, this commit will create a TestCase from
Validation so we can use the same API to create mocks in both PHPUnit
versions 4.0 and 5.0.

During the development of this commit, I noticed that PHPUnit 4.0 had
issues to mock "SplFileInfo" and for that reason, this commit will also
replace those mocks by "SplFileInfo" instances.

[1]: https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-02 11:09:24 +01:00
Henrique Moody 8c49c6a75b Run PHP 7.1 on Travis 2016-08-03 09:41:33 +02:00
Henrique Moody 06ecd9c063 Drop support for PHP 5.3 2015-10-17 12:55:52 -03:00
Henrique Moody a41b9c64a4 Add PHP 7 to the build matrix 2015-10-07 11:53:16 -03:00
Henrique Moody 02a1923eb5 Move unit tests to "tests/unit" 2015-08-11 13:36:25 -03:00
Henrique Moody 418480a385 Remove hhvm-nightly from the build matrix
HHVM nightly is no longer supported on Ubuntu Precise.
2015-07-28 17:14:51 -03:00
Henrique Moody 7ce7a806ee Merge branch '0.8' 2015-04-24 17:49:42 -03:00
Henrique Moody b165d6e660 Merge branch '0.7' into 0.8 2015-04-24 17:48:49 -03:00
Henrique Moody 5568f0a96f Remove cache of "vendor/" directory
See phpspec/phpspec#595 for more information.
2015-04-24 17:38:56 -03:00
Henrique Moody 34aa239513 Remove PHP 7 from Travis build
We have the "Int" rule but "int" is reserved word in PHP 7, so, until we
rename this rule - which will be just on our first major release -, we
will have no support for this version of PHP.
2015-04-16 23:41:11 -03:00
Tomáš Votruba a1a3c03a13 travis: --dev cleanup 2015-04-16 23:30:30 +02:00
Henrique Moody 63d5fb1ee4 Add PHP 7 to Travis builds
Fix wrong octal notation in "HexRgbColor" test case
2015-02-26 17:55:51 -03:00
Henrique Moody aefad12e03 Remove allow failures on HHVM builds 2015-02-07 18:06:23 -02:00
Henrique Moody 2b97bbba22 Update PHPUnit settings
- Move "tests/phpunit.xml" to "phpunit.xml.dist"
- Update documentation and contributing documents
- Update Travis settings
- Add "phpunit.xml" in the Git ignore list
2015-01-07 16:02:58 -02:00
Henrique Moody 9f0ee5cfbd Improve CI settings 2015-01-02 19:25:30 -02:00
Henrique Moody 4993bd61c1 Update CI settings
- Allow `code_rating` check on Scrutinizer
- Exclude tests/* and vendor/* from Scrutinizer paths
- Fix Travis error when running composer
- Run `php_analyzer` on Scrutinizer
- Run `php_mess_detector` on Scrutinizer
- Run PHPUnit on Travis without using Foundation
- Run tests coverage on Scrutinizer
2015-01-02 15:58:46 -02:00
Augusto Pascutti b0eb1284b8 Add scrutinizer badges to README.
Also removes the unstable build badge, which is kind of redundant since
we will always respect the pattern of keeping the `master` branch stable
enough to be used.

Two Scrutinizer badges were added: code coverage and code quality.

Travis changed to report code coverage to Scrutinizer.
2014-07-11 03:26:03 -03:00
Alexandre Gaigalas ee6af90ba4 PHP 5.6 working, hhvm on testing 2014-05-16 12:54:18 -03:00
Jefersson Nathan a81a2164e4 Keeping an eye on PHP 5.6
PHP 5.6 still alpha, but we can check if our code will break over there. Seems we have one incompatible thing so far. :)
2014-05-16 11:05:01 -03:00
nickl- 39562034bd Nudging travis again to see.. 2013-08-12 23:35:27 +02:00
nickl- 4267163377 Nudge travis to build 2013-07-24 14:42:25 +02:00
nickl- 87fa380bac Get travis to confirm 5.4.17 works. 2013-07-05 12:59:55 +02:00
nickl- 541280a784 Updated travis.yml with all the goodies. 2013-07-03 04:05:22 +02:00
nickl- 7ff10b3f75 Back to broken build 2013-07-03 03:42:37 +02:00
nickl- ecb989092c Taking a chance RC builds 2013-07-03 03:39:13 +02:00
nickl- aade33fbbc Try and update bootstrap via foundation 2013-07-03 03:13:30 +02:00
nickl- e68325cea5 Playing with travis 2013-07-03 02:46:17 +02:00
nickl- 921ace337d Add 5.5 to CI tests 2013-07-03 02:30:24 +02:00
nickl- 09e837879a Make travis work again 2013-01-25 05:20:15 +02:00
Henrique Moody 4a456aed06 Update .travis.yml
so one more try to make Travis-CI Work
2013-01-11 10:04:42 -02:00
Henrique Moody 6ad3736fdc Update Travis-CI file.
Removed Respect\Foundation call and replaced by PHPUnit direct call.
This is another workaround to make Travis create build correctly.
2013-01-11 09:49:08 -02:00
Augusto Pascutti 2e6fe3a148 Fix Travis: make it use composer.
- Refactor Zend validator tests
- Fixed my email on composer.json
- Added dev packages in composer.json:
    - Zend\Validator 2.*
    - Symfony\Component\Valitor 2.*

PS: This is just a quick fix before Foundation can run this on his
    own.
2012-12-18 01:55:33 -02:00
Alexandre Gaigalas d77e0c1479 Trimming out dependencies 2012-11-26 22:58:17 -02:00
Alexandre Gaigalas 271a4703f9 Removing beta dependencies 2012-11-26 22:53:20 -02:00
Alexandre Gaigalas 9f21396896 Trying to fix travis 2012-04-07 23:19:18 -03:00
Alexandre Gaigalas 33d931d258 Whitespace bugging travis? 2012-03-22 22:49:29 -03:00
Alexandre Gaigalas 468d9cc98e Travis marrento 2011-12-23 17:42:01 -02:00
Alexandre Gaigalas e5588fa17e Travis 2011-12-23 17:39:11 -02:00
Alexandre Gaigalas e1e422b8a9 Travis 2011-12-22 18:16:58 -02:00
Alexandre Gaigalas 85469bfb30 Travis again 2011-12-22 17:50:13 -02:00
Alexandre Gaigalas dbe7d6ed4d Trying to fix travis 2011-12-22 17:46:46 -02:00
Alexandre Gaigalas e4a10dd982 Trying to fix travis 2011-12-22 17:42:07 -02:00
Alexandre Gaigalas 4c2a81fc64 Trying to fix travis 2011-12-22 17:27:13 -02:00
Alexandre Gaigalas e7658286fc Trying to fix travis 2011-12-22 17:26:14 -02:00
Alexandre Gaigalas 31618eefb4 Trying to fix travis 2011-12-22 16:49:49 -02:00
Alexandre Gaigalas e8c9aa380a Trying to fix travis 2011-12-22 16:35:22 -02:00
Alexandre Gaigalas 7a946b0408 Trying to fix Travis 2011-12-19 11:00:14 -02:00
Alexandre Gomes Gaigalas 61bb0d3aad Adding 5.4 support to test on Travis CI 2011-11-25 18:51:05 -02:00
Alexandre Gaigalas 32efa03d22 Automation improvements 2011-11-25 18:03:48 -02:00
Alexandre Gomes Gaigalas daaa128482 Update .travis.yml 2011-11-25 15:09:37 -02:00