1
0
mirror of synced 2024-11-22 11:56:03 +03:00

Different makefile entrypoint for travis

This commit is contained in:
Pavel 2019-06-19 12:11:30 +03:00
parent dc8bb8c0ed
commit 0d0f593bcd
4 changed files with 9 additions and 54 deletions

3
.gitignore vendored
View File

@ -191,3 +191,6 @@ phpDocumentor.phar
phpDocumentor.phar.pubkey phpDocumentor.phar.pubkey
mg-bot-api-client-php.pages/* mg-bot-api-client-php.pages/*
build/* build/*
# Test report
test-report.xml

View File

@ -12,4 +12,4 @@ before_script:
- flags="-o" - flags="-o"
- composer install $flags - composer install $flags
script: make test script: make travis

View File

@ -30,3 +30,6 @@ ifeq ($(wildcard *.phar), )
@chmod +x phpDocumentor.phar @chmod +x phpDocumentor.phar
endif endif
@php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml @php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml
travis: test docs
@echo "==> Done."

View File

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="RetailCrm" tests="14" assertions="18" errors="2" failures="1" skipped="1" time="0.916477">
<testsuite name="RetailCrm\Mg\Bot\Tests\ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" tests="9" assertions="16" errors="0" failures="0" skipped="0" time="0.205605">
<testcase name="testChannels" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="45" assertions="2" time="0.038679"/>
<testcase name="testChats" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="68" assertions="2" time="0.021166"/>
<testcase name="testMembers" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="90" assertions="2" time="0.020040"/>
<testcase name="testMessages" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="110" assertions="2" time="0.024282"/>
<testcase name="testCommands" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="133" assertions="1" time="0.019772"/>
<testcase name="testBots" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="152" assertions="1" time="0.020315"/>
<testcase name="testUsers" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="174" assertions="2" time="0.020474"/>
<testcase name="testDialogs" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="197" assertions="2" time="0.021292"/>
<testcase name="testCustomers" class="RetailCrm\Mg\Bot\Tests\ClientListTest" classname="RetailCrm.Mg.Bot.Tests.ClientListTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/ClientListTest.php" line="220" assertions="2" time="0.019585"/>
</testsuite>
<testsuite name="RetailCrm\Mg\Bot\Tests\CommandsTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php" tests="4" assertions="2" errors="1" failures="1" skipped="1" time="0.538687">
<testcase name="testCommandEditException" class="RetailCrm\Mg\Bot\Tests\CommandsTest" classname="RetailCrm.Mg.Bot.Tests.CommandsTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php" line="37" assertions="1" time="0.182476">
<failure type="PHPUnit\Framework\ExpectationFailedException">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
.
</failure>
</testcase>
<testcase name="testCommandDeleteException" class="RetailCrm\Mg\Bot\Tests\CommandsTest" classname="RetailCrm.Mg.Bot.Tests.CommandsTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php" line="53" assertions="1" time="0.155145"/>
<testcase name="testCommandEdit" class="RetailCrm\Mg\Bot\Tests\CommandsTest" classname="RetailCrm.Mg.Bot.Tests.CommandsTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php" line="68" assertions="0" time="0.201066">
<error type="LazyJsonMapper\Exception\LazyJsonMapperException">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
</error>
</testcase>
<testcase name="testCommandDelete" class="RetailCrm\Mg\Bot\Tests\CommandsTest" classname="RetailCrm.Mg.Bot.Tests.CommandsTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/CommandsTest.php" line="87" assertions="0" time="0.000000">
<skipped/>
</testcase>
</testsuite>
<testsuite name="RetailCrm\Mg\Bot\Tests\MessagesTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/MessagesTest.php" tests="1" assertions="0" errors="1" failures="0" skipped="0" time="0.172185">
<testcase name="testMessageSend" class="RetailCrm\Mg\Bot\Tests\MessagesTest" classname="RetailCrm.Mg.Bot.Tests.MessagesTest" file="/home/pavel/mg-bots/mg-bot-api-client-php/tests/Bot/Tests/MessagesTest.php" line="36" assertions="0" time="0.172185">
<error type="LazyJsonMapper\Exception\LazyJsonMapperException">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
</error>
</testcase>
</testsuite>
</testsuite>
</testsuites>