From 0d0f593bcd1c34544d13e3cdbf366b48e995d659 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 19 Jun 2019 12:11:30 +0300 Subject: [PATCH] Different makefile entrypoint for travis --- .gitignore | 5 ++++- .travis.yml | 2 +- Makefile | 5 ++++- test-report.xml | 51 ------------------------------------------------- 4 files changed, 9 insertions(+), 54 deletions(-) delete mode 100644 test-report.xml diff --git a/.gitignore b/.gitignore index 8d66bfa..35842a7 100644 --- a/.gitignore +++ b/.gitignore @@ -190,4 +190,7 @@ $RECYCLE.BIN/ phpDocumentor.phar phpDocumentor.phar.pubkey mg-bot-api-client-php.pages/* -build/* \ No newline at end of file +build/* + +# Test report +test-report.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1c2ba4f..fc2f140 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ before_script: - flags="-o" - composer install $flags -script: make test +script: make travis diff --git a/Makefile b/Makefile index 4a14a4c..0f75d89 100644 --- a/Makefile +++ b/Makefile @@ -29,4 +29,7 @@ ifeq ($(wildcard *.phar), ) @wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey -O phpDocumentor.phar.pubkey @chmod +x phpDocumentor.phar endif - @php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml \ No newline at end of file + @php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml + +travis: test docs + @echo "==> Done." \ No newline at end of file diff --git a/test-report.xml b/test-report.xml deleted file mode 100644 index 12a8563..0000000 --- a/test-report.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - RetailCrm\Mg\Bot\Tests\CommandsTest::testCommandEditException -Failed asserting that exception of type "Exception" matches expected exception "InvalidArgumentException". Message was: "Method not found " at -/home/pavel/mg-bots/mg-bot-api-client-php/src/Bot/HttpClient.php:169 -/home/pavel/mg-bots/mg-bot-api-client-php/src/Bot/Client.php:88 -/home/pavel/mg-bots/mg-bot-api-client-php/src/Bot/Client.php:254 -/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php:46 -. - - - - - - RetailCrm\Mg\Bot\Tests\CommandsTest::testCommandEdit -LazyJsonMapper\Exception\LazyJsonMapperException: Unknown function "isSuccessful". - -/home/pavel/mg-bots/mg-bot-api-client-php/vendor/lazyjsonmapper/lazyjsonmapper/src/LazyJsonMapper.php:2156 -/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php:79 - - - - - - - - - RetailCrm\Mg\Bot\Tests\MessagesTest::testMessageSend -LazyJsonMapper\Exception\LazyJsonMapperException: Unknown function "getStatusCode". - -/home/pavel/mg-bots/mg-bot-api-client-php/vendor/lazyjsonmapper/lazyjsonmapper/src/LazyJsonMapper.php:2156 -/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/MessagesTest.php:47 - - - - -