[cleanup/files] Remove useless code from travis.yml and run codesniffer

This commit is contained in:
Marc Alexander
2013-10-29 17:17:42 +01:00
parent add4d2987f
commit 7525acfcd6

View File

@@ -14,9 +14,7 @@ before_script:
- cd ../../ - cd ../../
- git clone "git://github.com/phpbb/phpbb3.git" "phpBB3" - git clone "git://github.com/phpbb/phpbb3.git" "phpBB3"
- mkdir phpBB3/phpBB/ext - mkdir phpBB3/phpBB/ext
# - mkdir phpBB3/phpBB/ext/board3
- find -type d -name "Board3-Portal" -print | xargs -i mv {} 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 # Setup the dependencies
- cd phpBB3/phpBB - 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 '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' = '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" - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
- ls -l
- travis/install-php-extensions.sh - travis/install-php-extensions.sh
- phpenv rehash - phpenv rehash
- sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi" - sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"
script: 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 - ../../vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
notifications: notifications: