Commit Graph

11 Commits

Author SHA1 Message Date
Ben Ramsey 79e56bc162 Exclude docs, tests, tools from GitHub language statistics 2018-03-23 11:03:46 -04:00
Vincent Klaiber 895cd766b6 Update .gitattributes 2018-01-21 17:53:12 +01:00
Vincent Klaiber c1fb254784 Update .gitattributes 2018-01-21 17:52:47 +01:00
Vincent Klaiber 9fef35e028 Exclude docs and markdown files
Added .md files and the docs directory to be excluded in production.
2018-01-21 14:19:56 +01:00
Ben Ramsey 446df35e87 Move util/ to tools/
GitHub ignores the contents of the tools/ directory for the purpose of
repo language statistics.
2017-03-26 16:03:42 -05:00
Ben Ramsey fa38bdddc5 Remove Gitter and Scrutinizer integration 2017-03-18 10:11:07 -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 95d84d3b08 Add Scrutinizer build configuration 2015-08-13 10:12:32 -05:00
Ben Ramsey 2d2c57d233 Remove apigen.neon config 2015-06-21 19:53:09 -05:00
Ben Ramsey 39c98bb652 Add phpcs.xml to the .gitattributes ignore list 2014-11-08 16:50:04 -05:00
Greg Roach 6485884397 Exclude build/development tools from releases using .gitattributes 2014-10-24 14:31:22 +01:00