diff --git a/.travis.yml b/.travis.yml index 97a0276f..123b55d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,7 @@ before_script: - cd ../../ - git clone "git://github.com/phpbb/phpbb3.git" "phpBB3" - mkdir phpBB3/phpBB/ext - # - mkdir phpBB3/phpBB/ext/board3 - find -type d -name "Board3-Portal" -print | xargs -i mv {} phpBB3/phpBB/ext/board3 - # - mv board3/Board3-Portal phpBB3/phpBB/ext/board3 # Setup the dependencies - cd phpBB3/phpBB @@ -27,12 +25,14 @@ before_script: - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi" - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi" - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi" - - ls -l - travis/install-php-extensions.sh - phpenv rehash - sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi" script: + - cd ../../../build + - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi" + - cd ../phpBB/ext/board3 - ../../vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml notifications: