Skip to content

Commit 212975e

Browse files
committed
Moved sample-code execution from after-script to ensure travis fails on its failure.
Added argument to pass submodule directory, so that sample code test-runner runs from sdk.
1 parent 76d092c commit 212975e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ sudo: false
99
before_script:
1010
- pecl install xmldiff
1111
- composer install --prefer-dist --ignore-platform-reqs
12-
- git submodule update --remote --recursive
12+
- chmod +x ./test-sample-codes.sh
13+
- git submodule update --remote --recursive
1314

1415
script:
1516
- vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
17+
- vendor/phpunit/phpunit/phpunit sample-code-php/test-runner.php sample-code-php/
1618

1719
after_script:
1820
- wget https://scrutinizer-ci.com/ocular.phar
1921
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
20-
- vendor/phpunit/phpunit/phpunit ./sample-code-php/test-runner.php ./sample-code-php/SampleCodeList.txt
22+

0 commit comments

Comments
 (0)