{"push_id":830578132,"size":2,"distinct_size":1,"ref":"refs/heads/master","head":"90eba2f33a835917027fdac0f49c208707f79eba","before":"5a397dddee79edc15d1f88f421d51603277d8576","commits":[{"sha":"6d712900f4d88f8150f2634e7e5d4f057e97ba9a","author":{"email":"73675debcd8a436be48ec22211dcf44fe0df0a64@benramsey.com","name":"Ben Ramsey"},"message":"Modify Travis CI builds to run tests on multiple CPU architectures\n\nThe ramsey/uuid library has requirements to run on 32-bit and 64-bit\nsystems, as well as little-endian and big-endian systems. Travis CI only\nprovides hardware for testing 64-bit, little-endian CPU architectures,\nbut they recently announced support for Docker[^1].\n\nAfter some research, I found it is possible to use [QEMU][] with\n[chroot][] jails on Travis CI to emulate other CPU architectures and run\ntests through these chroot jails[^2]. Unfortunately, it takes an awful\nlong time to set up a chroot jail, build PHP within it, and run the\ntests. It wasn't reasonable to expect to do this on every single push to\nthe ramsey/uuid repository. This is where Docker comes in.\n\nI was able to create chroot jails for each architecture and version of\nPHP combination I need to test and then turn these into Docker images,\nwhich Travis is able to download and run fairly quickly. The instances\non which Travis CI is running their Docker services do not currently\nsupport phpenv or php-build, so I needed to masquerade as a Python\nproject and specify all PHP versions and CPU architectures in\nenvironment variables in my `.travis.yml` configuration. I run\n`composer install` and report to Coveralls outside of the Docker images,\nbut all tests are run within the Docker images.\n\nThe Docker image I created for PHP 7.0.0RC4 on MIPS architecture\nproduces segfaults when attempting to build PHP with Phar. PHP builds\nokay without Phar, but then it produces segfaults when running any PHP\nscript on the image, so I'm leaving out 7.0.0RC4 on MIPS for now.\n\nThe Docker images for use with ramsey/uuid tests are available here:\n<https://hub.docker.com/r/benramsey/ramsey-uuid/>.\n\n[^1]: \"Using Docker on Travis\nCI,\" <http://blog.travis-ci.com/2015-08-19-using-docker-on-travis-ci/>\n[^2]: \"Running Travis CI tests on ARM architecture,\"\n<https://www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html>\n\n[qemu]: http://wiki.qemu.org/Main_Page\n[chroot]: https://en.wikipedia.org/wiki/Chroot","distinct":false,"url":"https://api.github.com/repos/michabbb-backup/uuid/commits/6d712900f4d88f8150f2634e7e5d4f057e97ba9a"},{"sha":"90eba2f33a835917027fdac0f49c208707f79eba","author":{"email":"73675debcd8a436be48ec22211dcf44fe0df0a64@benramsey.com","name":"Ben Ramsey"},"message":"Merge pull request #89 from ramsey/experimental-travisci-mips-arch\n\nModify Travis CI builds to run tests on multiple CPU architectures","distinct":true,"url":"https://api.github.com/repos/michabbb-backup/uuid/commits/90eba2f33a835917027fdac0f49c208707f79eba"}]}