Skip to content
Extraits de code Groupes Projets
Valider 5bbdc355 rédigé par Fabian Becker's avatar Fabian Becker
Parcourir les fichiers

Previous builds failed due to a missing config.ini.php.

Using the before_script command we now copy a configuration file 
to config/. We also create a database for tests.

PHPUnit complained about missing XDebug - so this is added.


git-svn-id: http://dev.piwik.org/svn/trunk@7833 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 7aa7595b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,3 +7,7 @@ php: ...@@ -7,3 +7,7 @@ php:
- 5.3 - 5.3
script: phpunit --configuration tests/PHPUnit/phpunit.xml.dist --coverage-text script: phpunit --configuration tests/PHPUnit/phpunit.xml.dist --coverage-text
before_script
- mysql -e 'create database piwik_test;'
- ./tests/PHPUnit/travis.sh
; <?php exit; ?> DO NOT REMOVE THIS LINE
; This configuration is used for automatic integration
; tests on Travis-CI. Do not use this in production.
[superuser]
login = yourSuperUserLogin
password = yourSuperUserPasswordHash
email = hello@example.org
[database]
host = localhost
username = root
password =
dbname = piwik_test
adapter = PDO_MYSQL ; PDO_MYSQL, MYSQLI, or PDO_PGSQL
tables_prefix = piwik_
;charset = utf8
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Install XDebug
pecl install xdebug
echo "extension=xdebug.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
# Copy Piwik configuration
cp $DIR/config.ini.travis.php ../../config/config.ini.php
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter