21.diff (3139B)
1 diff --git a/.travis.yml b/.travis.yml 2 index ff2f9e9..206b943 100644 3 --- a/.travis.yml 4 +++ b/.travis.yml 5 @@ -3,6 +3,7 @@ language: php 6 php: 7 - 5.6 8 - 7.0 9 + - hhvm 10 #RequireDB 11 env: 12 - DB=mysqli 13 @@ -10,10 +11,23 @@ env: 14 matrix: 15 allow_failures: 16 - php: 7.0 17 + - php: hhvm 18 #Create Database 19 before_script: 20 - wget https://phar.phpunit.de/phpunit.phar 21 - chmod +x phpunit.phar 22 - mysql -e 'create database RPICMS;' 23 + - composer require codeclimate/php-test-reporter --dev 24 #RunTests 25 script: php phpunit.phar --configuration phpunit_$DB.xml --verbose 26 +#after scripts 27 +after_script: 28 + - CODECLIMATE_REPO_TOKEN=ade1bcb53e705341208c7c5138a92b8bdf6babd489e6d43054e86ea097cb42b2 php ./vendor/bin/test-reporter 29 +#Webhook for Gitter 30 +notifications: 31 + webhooks: 32 + urls: 33 + - https://webhooks.gitter.im/e/2352a1a1d808a3b834cf 34 + on_success: change # options: [always|never|change] default: always 35 + on_failure: always # options: [always|never|change] default: always 36 + on_start: never # options: [always|never|change] default: always 37 diff --git a/README.md b/README.md 38 index 3b8fdd7..b0c4115 100644 39 --- a/README.md 40 +++ b/README.md 41 @@ -1,14 +1,16 @@ 42 RPICMS 43 ====== 44 45 +[](https://codeclimate.com/github/RpicmsTeam/RPICMS) 46 +[](https://travis-ci.org/RpicmsTeam/RPICMS) 47 +Chats 48 +----- 49 [](https://gitter.im/RpicmsTeam/RPICMS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 50 51 -No test at this time aviable: [](https://travis-ci.org/RpicmsTeam/RPICMS) 52 - 53 A CMS for the Raspberry Pi 54 55 Mailinglist 56 -=========== 57 +----------- 58 The Mailinglist of this CMS you can subscribe at http://lists.nordgedanken.de 59 60 The "upload.sh" is only for the upload from my PC. 61 diff --git a/phpunit_mysqli.xml b/phpunit_mysqli.xml 62 index 67e8f71..d976eac 100644 63 --- a/phpunit_mysqli.xml 64 +++ b/phpunit_mysqli.xml 65 @@ -10,4 +10,15 @@ 66 <file>tests/mysqliLoadedTest.php</file> 67 <file>tests/mysqliMakeDB.php</file> 68 </testsuite> 69 + <logging> 70 + <log type="coverage-clover" target="build/logs/clover.xml"/> 71 + </logging> 72 + <filter> 73 + <whitelist> 74 + <directory>./</directory> 75 + <exclude> 76 + <directory>./tests</directory> 77 + </exclude> 78 + </whitelist> 79 + </filter> 80 </phpunit> 81 diff --git a/tests/mysqliLoadedTest.php b/tests/mysqliLoadedTest.php 82 index 30f2d43..f457bfc 100644 83 --- a/tests/mysqliLoadedTest.php 84 +++ b/tests/mysqliLoadedTest.php 85 @@ -21,5 +21,18 @@ public function testDBConnection() 86 $this->markTestSkipped($mysqli->connect_error()); 87 } 88 } 89 + 90 + /** 91 + * @depends testForMysqli 92 + * @depends testDBConnection 93 + */ 94 + public function testCreateTestingTables() 95 + { 96 + $mysqli = new mysqli("localhost","root","","RPICMS"); 97 + 98 + 99 + 100 + 101 + } 102 } 103 ?>