Skip to content

Travis tests #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down