diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3a65fe0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: php +sudo: false + +php: + - 7.2 + - 7.1 + - 7.0 + - 5.6 + - 5.5 + - 5.4 + - nightly + +env: + - NO_INTERACTION=1 + +before_script: + - phpize + - EXTRA_LDFLAGS="-precious-files-regex .libs/geospatial.gcno" LDFLAGS="-lgcov" CFLAGS="-Wall -ggdb3 -fno-strict-aliasing -coverage -O0" ./configure --enable-geospatial + - make -j 5 test && if ls tests/*.diff >/dev/null 2>&1; then echo "Tests failed" && exit 1; fi + - gcov --object-directory .libs *.c + - bash <(curl -s https://codecov.io/bash) + +script: + - make install + - echo "extension = geospatial.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini diff --git a/README.rst b/README.rst index e4cb069..d3f0732 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,10 @@ ===================================== geospatial - PHP Geospatial Extension ===================================== +.. image:: https://travis-ci.org/php-geospatial/geospatial.svg?branch=master + :target: https://travis-ci.org/php-geospatial/geospatial +.. image:: https://codecov.io/gh/php-geospatial/geospatial/branch/master/graphs/badge.svg?branch=master + :target: https://codecov.io/github/php-geospatial/geospatial?branch=master PHP Extension to handle common geospatial functions. The extension currently has implementations of the Haversine and Vincenty's formulas for calculating