Skip to content

Commit b741298

Browse files
committed
Merge pull request #95 from akankaria/master
Adding sample code as sub module of php-sdk
2 parents a609fab + 07058de commit b741298

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "sample-code-php"]
2+
path = sample-code-php
3+
url = https://github.com/Authorizenet/sample-code-php.git

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ sudo: false
88
before_script:
99
- pecl install xmldiff
1010
- composer install --prefer-dist --dev
11-
11+
- chmod +x ./test-sample-codes.sh
12+
1213
script:
1314
- vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
1415

1516
after_script:
1617
- wget https://scrutinizer-ci.com/ocular.phar
1718
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
18-
19+
- ./test-sample-codes.sh

sample-code-php

Submodule sample-code-php added at 547daab

test-sample-codes.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
for file in $(find sample-code-php/ -name '*.php')
4+
do
5+
php $file
6+
done

0 commit comments

Comments
 (0)