From c3fe6e8e5934f3274e331f8751da92cea15fd57a Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Wed, 14 May 2014 17:35:25 -0400 Subject: [PATCH] Started to set up tests, added configs --- .coveralls.yml | 1 + .travis.yml | 26 ++++++++++++++++++++++++++ tests/GooglePlacesTest.php | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .coveralls.yml create mode 100644 .travis.yml create mode 100644 tests/GooglePlacesTest.php diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..9160059 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7fc36a0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: php + +php: + - 5.3 + - 5.4 + - 5.5 + - 5.6 + - hhvm + +matrix: + allow_failures: + - php: 5.6 + - php: hhvm + +install: + - composer install + +before_script: + - mkdir -p build/logs + - cd tests + +script: + - phpunit --colors --coverage-clover /home/travis/build/joshtronic/php-googleplaces/build/logs/clover.xml . + +after_success: + - php ../vendor/bin/coveralls --config ../.coveralls.yml -v diff --git a/tests/GooglePlacesTest.php b/tests/GooglePlacesTest.php new file mode 100644 index 0000000..7d39a44 --- /dev/null +++ b/tests/GooglePlacesTest.php @@ -0,0 +1,33 @@ +