Commit Graph

425 Commits

Author SHA1 Message Date
Ben Ramsey 369efacd98 Fix test failing on PHP 5.4 because of ::class keyword name resolution 2016-02-13 20:45:33 -06:00
Ben Ramsey 60d09b6e3d Bump copyright year 2016-02-13 20:30:32 -06:00
Ben Ramsey e4e38b4059 Add random generator for the PECL libsodium extension 2016-02-13 20:29:32 -06:00
Ben Ramsey 47964f2cca Remove code-coverage logging from PHPUnit config 2016-02-13 20:28:50 -06:00
Ben Ramsey e3b0f62e3c Update PHP versions for Travis CI tests 2016-01-23 16:11:55 -05:00
Ben Ramsey 94304e12fe Update release badge
[ci skip]
2015-12-17 14:19:06 -06:00
Ben Ramsey cdeed9e65a Apply coding standards to tests, as well 2015-12-17 12:09:17 -06:00
Ben Ramsey a04e5d30a8 Merge branch '2.8' 2015-12-17 12:05:39 -06:00
Ben Ramsey f7d836e7ec Add linting and code-sniffing to the Travis CI build 2015-12-17 12:04:11 -06:00
Ben Ramsey 0075fe6e23 Merge branch '2.8' 2015-12-17 11:04:15 -06:00
Ben Ramsey 805d8e1894 Add CHANGELOG notes for version 2.8.4
[ci skip]
2.8.4
2015-12-17 10:54:24 -06:00
Ben Ramsey f290a0cbb9 Update build matrix to run tests on PHP 7 & with lowest package versions 2015-12-17 10:47:49 -06:00
Ben Ramsey 93a056afda Merge pull request #94 from pkruithof/sf3-support
Added support for symfony/console v3
2015-12-17 10:20:38 -06:00
pkruithof 9640408866 Added support for symfony/console v3 2015-12-17 17:08:03 +01:00
Ben Ramsey 3cc2dd253e Add CHANGELOG notes for version 3.1.0
[ci skip]
3.1.0
2015-12-17 09:21:44 -06:00
Ben Ramsey a9d17e7b54 Change PHP build env targets and move composer command to Docker image 2015-12-16 16:28:07 -06:00
Ben Ramsey 62a7237165 Fix directory name created from unzipping the XDebug package 2015-12-15 16:35:55 -06:00
Ben Ramsey 2b06ff6e3f Update the Docker image build script for PHP 7.0.0 2015-12-15 15:48:02 -06:00
Ben Ramsey 823f8bca69 Merge pull request #92 from frankdejonge/master
Fixes #91: Made Uuid's serializable.
2015-10-25 16:50:46 -05:00
frankdejonge 91d0c6da31 Fixes #91: Made Uuid's serializable. 2015-10-25 22:15:32 +01:00
Ben Ramsey f77767e6f0 Remove the "HHVM tested" badge
While this project is actually tested against HHVM, we are no longer
using the default Travis CI PHP testing configuration, so the
http://hhvm.h4cc.de/ logic can't determine whether we're testing against
HHVM. So that the badge doesn't show up red and cause confusion, I'm
removing it.

[ci skip]
2015-10-21 12:42:18 -05:00
Ben Ramsey b001d0de19 Bump the PHP 7 version for tests to 7.0.0RC5 2015-10-21 12:22:09 -05:00
Ben Ramsey 3c84b9e296 Add CHANGELOG notes for version 3.0.1 3.0.1 2015-10-21 11:27:25 -05:00
Ben Ramsey 90eba2f33a Merge pull request #89 from ramsey/experimental-travisci-mips-arch
Modify Travis CI builds to run tests on multiple CPU architectures
2015-10-16 12:19:28 -05:00
Ben Ramsey 6d712900f4 Modify Travis CI builds to run tests on multiple CPU architectures
The ramsey/uuid library has requirements to run on 32-bit and 64-bit
systems, as well as little-endian and big-endian systems. Travis CI only
provides hardware for testing 64-bit, little-endian CPU architectures,
but they recently announced support for Docker[^1].

After some research, I found it is possible to use [QEMU][] with
[chroot][] jails on Travis CI to emulate other CPU architectures and run
tests through these chroot jails[^2]. Unfortunately, it takes an awful
long time to set up a chroot jail, build PHP within it, and run the
tests. It wasn't reasonable to expect to do this on every single push to
the ramsey/uuid repository. This is where Docker comes in.

I was able to create chroot jails for each architecture and version of
PHP combination I need to test and then turn these into Docker images,
which Travis is able to download and run fairly quickly. The instances
on which Travis CI is running their Docker services do not currently
support phpenv or php-build, so I needed to masquerade as a Python
project and specify all PHP versions and CPU architectures in
environment variables in my `.travis.yml` configuration. I run
`composer install` and report to Coveralls outside of the Docker images,
but all tests are run within the Docker images.

The Docker image I created for PHP 7.0.0RC4 on MIPS architecture
produces segfaults when attempting to build PHP with Phar. PHP builds
okay without Phar, but then it produces segfaults when running any PHP
script on the image, so I'm leaving out 7.0.0RC4 on MIPS for now.

The Docker images for use with ramsey/uuid tests are available here:
<https://hub.docker.com/r/benramsey/ramsey-uuid/>.

[^1]: "Using Docker on Travis
CI," <http://blog.travis-ci.com/2015-08-19-using-docker-on-travis-ci/>
[^2]: "Running Travis CI tests on ARM architecture,"
<https://www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html>

[qemu]: http://wiki.qemu.org/Main_Page
[chroot]: https://en.wikipedia.org/wiki/Chroot
2015-10-07 22:59:11 -05:00
Ben Ramsey 5a397dddee Merge pull request #88 from emirb/code-improvements
Code improvements
2015-10-06 21:37:50 -05:00
Emir Beganovic 27602a4508 Add scrutinizer code checks 2015-10-07 02:29:25 +02:00
Emir Beganovic 264a6ceca3 Boolean should be compared strictly 2015-10-07 02:28:06 +02:00
Ben Ramsey eeccb87ab7 Merge pull request #87 from emirb/cleanup
Cleanup: Update and add missing docblocks, remove unused imports
2015-10-06 00:33:49 -05:00
Emir Beganovic 94e39e8202 Add new line after last use 2015-10-05 10:21:32 +02:00
Emir Beganovic fb1cd7a944 Cleanup: Update and add missing docblocks, remove unused imports
Just a bit of house keeping for the sake of code cleanliness.
2015-10-05 10:18:21 +02:00
Ben Ramsey 6665dcc1d3 Remove branch alias 2015-10-03 11:02:03 -05:00
Ben Ramsey bab1bc7bd2 Add ext-uuid to suggestions and re-organize suggestions 2015-10-03 11:01:46 -05:00
Ben Ramsey a0217723d5 Use --verbose when running tests to show skipped/incomplete tests 2015-10-03 11:01:12 -05:00
Ben Ramsey c81933b700 Remove 1.1.2 backwards-compatibility tests 2015-10-03 11:00:08 -05:00
Ben Ramsey f5e96b6af7 Restructure tests 2015-10-03 10:59:44 -05:00
Ben Ramsey 2fb164fd88 Shorten the exception name reference, for readability 2015-09-29 12:21:43 -05:00
Ben Ramsey 32caead5e6 Convert badge URL to use SSL 2015-09-29 12:21:14 -05:00
Ben Ramsey b5a9ff72e6 Remove extra line-breaks from paragraphs 2015-09-29 12:20:07 -05:00
Ben Ramsey fcaa82af32 Update README to include discussion of rhumsaa/uuid abandoned message 2015-09-29 12:11:54 -05:00
Ben Ramsey 26bdde5c98 Remove superfluous license link reference
[ci skip]
2015-09-29 09:54:06 -05:00
Ben Ramsey f48f26e3e1 Add project code of conduct and update README
[ci skip]
2015-09-29 09:38:31 -05:00
Ben Ramsey 15db91b8f6 Fix minor issues highlighted by Scrutinizer 2015-09-28 12:19:57 -05:00
Ben Ramsey 0c0ac34e86 Add Contributing and License sections to the README
[ci skip]
3.0.0
2015-09-28 11:27:51 -05:00
Ben Ramsey e074460fe4 Update link to Moontoast\Math library
[ci skip]
2015-09-28 11:19:29 -05:00
Ben Ramsey 4def0228ef Add CHANGELOG notes for version 3.0.0 2015-09-28 11:14:49 -05:00
Ben Ramsey f1892e6aae Restructure README and add "upgrade to 3.x" section 2015-09-28 11:04:57 -05:00
Ben Ramsey 4e548705c0 Point to Ramsey\Uuid\UuidInterface::getFieldsHex instead 2015-09-27 18:59:32 -05:00
Ben Ramsey e6f97dc8ab Add docblocks for classes and interfaces in top-level Ramsey\Uuid namespace 2015-09-27 18:58:50 -05:00
Ben Ramsey d975f0f143 Add docblocks for classes and interfaces in Ramsey\Uuid\Provider namespace 2015-09-27 13:02:30 -05:00