22.diff (3253B)
1 diff --git a/.travis.yml b/.travis.yml 2 index ff2f9e9..77def59 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,26 @@ 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 +addons: 38 + code_climate: 39 + repo_token: ade1bcb53e705341208c7c5138a92b8bdf6babd489e6d43054e86ea097cb42b2 40 diff --git a/README.md b/README.md 41 index 3b8fdd7..b0c4115 100644 42 --- a/README.md 43 +++ b/README.md 44 @@ -1,14 +1,16 @@ 45 RPICMS 46 ====== 47 48 +[](https://codeclimate.com/github/RpicmsTeam/RPICMS) 49 +[](https://travis-ci.org/RpicmsTeam/RPICMS) 50 +Chats 51 +----- 52 [](https://gitter.im/RpicmsTeam/RPICMS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 53 54 -No test at this time aviable: [](https://travis-ci.org/RpicmsTeam/RPICMS) 55 - 56 A CMS for the Raspberry Pi 57 58 Mailinglist 59 -=========== 60 +----------- 61 The Mailinglist of this CMS you can subscribe at http://lists.nordgedanken.de 62 63 The "upload.sh" is only for the upload from my PC. 64 diff --git a/phpunit_mysqli.xml b/phpunit_mysqli.xml 65 index 67e8f71..d976eac 100644 66 --- a/phpunit_mysqli.xml 67 +++ b/phpunit_mysqli.xml 68 @@ -10,4 +10,15 @@ 69 <file>tests/mysqliLoadedTest.php</file> 70 <file>tests/mysqliMakeDB.php</file> 71 </testsuite> 72 + <logging> 73 + <log type="coverage-clover" target="build/logs/clover.xml"/> 74 + </logging> 75 + <filter> 76 + <whitelist> 77 + <directory>./</directory> 78 + <exclude> 79 + <directory>./tests</directory> 80 + </exclude> 81 + </whitelist> 82 + </filter> 83 </phpunit> 84 diff --git a/tests/mysqliLoadedTest.php b/tests/mysqliLoadedTest.php 85 index 30f2d43..f457bfc 100644 86 --- a/tests/mysqliLoadedTest.php 87 +++ b/tests/mysqliLoadedTest.php 88 @@ -21,5 +21,18 @@ public function testDBConnection() 89 $this->markTestSkipped($mysqli->connect_error()); 90 } 91 } 92 + 93 + /** 94 + * @depends testForMysqli 95 + * @depends testDBConnection 96 + */ 97 + public function testCreateTestingTables() 98 + { 99 + $mysqli = new mysqli("localhost","root","","RPICMS"); 100 + 101 + 102 + 103 + 104 + } 105 } 106 ?>