Skip to content

Commit

Permalink
Fix Travis CI configuration (#33)
Browse files Browse the repository at this point in the history
* Fix Travis CI configuration

* SUpport 5.6 and 7.*, owngrade PHPUnit

* Use older autoload class name

* Use vendor binary

* Install composer deps

* Remove php 7 syntax

* Add build badge
  • Loading branch information
robwittman authored Aug 11, 2019
1 parent e0b0bf9 commit 52773d2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: php
php:
- 5.5
- 5.4
- 7
script: phpunit
- 5.6
- 7.1
- 7.2
- 7.3
before_script:
- composer install --prefer-source --no-interaction --dev

script: ./vendor/bin/phpunit

env:
- AUTOLOAD=1

script: php ./build.php ${AUTOLOAD}
after_script: ./vendor/bin/coveralls -v
sudo: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/robwittman/shopify-php-sdk.svg?branch=master)](https://travis-ci.org/robwittman/shopify-php-sdk)

# Shopify PHP SDK

This SDK was created to enable rapid efficient development using Shopify's API.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]
},
"require-dev": {
"phpunit/phpunit": "^6.1",
"phpunit/phpunit": "^5.1",
"squizlabs/php_codesniffer": "^3.0",
"overtrue/phplint": "^0.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Service/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class AbstractService
const REQUEST_METHOD_PUT = 'PUT';
const REQUEST_METHOD_DELETE = 'DELETE';

public static function factory(ApiInterface $api): AbstractService
public static function factory(ApiInterface $api)
{
return new static($api);
}
Expand Down
2 changes: 1 addition & 1 deletion test/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

session_start();

class TestCase extends \PHPUnit\Framework\TestCase
class TestCase extends \PHPUnit_Framework_TestCase
{
public function getApi(array $params = array())
{
Expand Down

0 comments on commit 52773d2

Please sign in to comment.