Skip to content

Commit 52773d2

Browse files
authored
Fix Travis CI configuration (#33)
* 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
1 parent e0b0bf9 commit 52773d2

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.travis.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
language: php
22
php:
3-
- 5.5
4-
- 5.4
5-
- 7
6-
script: phpunit
3+
- 5.6
4+
- 7.1
5+
- 7.2
6+
- 7.3
7+
before_script:
8+
- composer install --prefer-source --no-interaction --dev
9+
10+
script: ./vendor/bin/phpunit
711

812
env:
913
- AUTOLOAD=1
10-
11-
script: php ./build.php ${AUTOLOAD}
12-
after_script: ./vendor/bin/coveralls -v
13-
sudo: false

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/robwittman/shopify-php-sdk.svg?branch=master)](https://travis-ci.org/robwittman/shopify-php-sdk)
2+
13
# Shopify PHP SDK
24

35
This SDK was created to enable rapid efficient development using Shopify's API.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
]
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^6.1",
30+
"phpunit/phpunit": "^5.1",
3131
"squizlabs/php_codesniffer": "^3.0",
3232
"overtrue/phplint": "^0.2.4"
3333
},

src/Service/AbstractService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class AbstractService
2626
const REQUEST_METHOD_PUT = 'PUT';
2727
const REQUEST_METHOD_DELETE = 'DELETE';
2828

29-
public static function factory(ApiInterface $api): AbstractService
29+
public static function factory(ApiInterface $api)
3030
{
3131
return new static($api);
3232
}

test/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
session_start();
1414

15-
class TestCase extends \PHPUnit\Framework\TestCase
15+
class TestCase extends \PHPUnit_Framework_TestCase
1616
{
1717
public function getApi(array $params = array())
1818
{

0 commit comments

Comments
 (0)