diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..501ba6cd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "cybersource-rest-samples-php"] + path = cybersource-rest-samples-php + url = https://github.com/CyberSource/cybersource-rest-samples-php + ignore = dirty diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b1ac9928 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: php + +php: + - 5.6 + - 7.0 + - 7.1 + - 8.0 + +sudo: false + +before_install: + - composer validate + +install: + - composer update --prefer-dist + +before_script: + - git submodule update --remote --recursive + - cd cybersource-rest-samples-php + - composer update --prefer-dist + - cd .. + - rm -Rf cybersource-rest-samples-php/vendor/cybersource/rest-client-php/lib + - cp -R lib cybersource-rest-samples-php/vendor/cybersource/rest-client-php + +script: + - cd cybersource-rest-samples-php + - bash sample_code_runner.sh \ No newline at end of file diff --git a/README.md b/README.md index 66a1ca65..42783770 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # PHP Client SDK for CyberSource REST APIs +[![Build Status](https://travis-ci.com/CyberSource/cybersource-rest-client-php.svg?branch=master)](https://travis-ci.com/CyberSource/cybersource-rest-client-php) + The CyberSource PHP client provides convenient access to the [CyberSource REST API](https://developer.cybersource.com/api/reference/api-reference.html) from your PHP application. [![Version ][packagist_badge]][packagist] diff --git a/cybersource-rest-samples-php b/cybersource-rest-samples-php new file mode 160000 index 00000000..70f0b8b9 --- /dev/null +++ b/cybersource-rest-samples-php @@ -0,0 +1 @@ +Subproject commit 70f0b8b995de9854cf45316dea1a1cd2aad382f1