add test-info

This commit is contained in:
Shish 2015-08-01 13:23:59 +01:00
parent 9bba2a0f5b
commit cb9cc07d30
2 changed files with 8 additions and 0 deletions

View file

@ -27,6 +27,8 @@ install:
- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi
script:
- php tests/test_info.php
- curl http://127.0.0.1/tests/test_info.php
- php tests/test_install.php -d $DB -h "http://127.0.0.1/"
- php tests/test_all.php -h "http://127.0.0.1/"

6
tests/test_info.php Normal file
View file

@ -0,0 +1,6 @@
<?php
print("Shimmie Auto-Test\n");
print("~~~~~~~~~~~~~~~~~\n");
print("Database : " . getenv("DB") . "\n");
print("PHP : " . phpversion() . "\n");
print("PDO drivers: " . var_export(PDO::getAvailableDrivers(), true) . "\n");