[feature/tests] fix travis build

This commit is contained in:
Marc Alexander
2013-10-29 15:19:37 +01:00
parent fe7794f81a
commit 4eb836cbc7

View File

@@ -14,15 +14,15 @@ 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/phpbbgallery - mkdir phpBB3/phpBB/ext/board3
- mv nickvergessen/phpbb3-ext-gallery phpBB3/phpBB/ext/phpbbgallery/core - mv board3/Board3-Portal phpBB3/phpBB/ext/board3
# Setup the dependencies # Setup the dependencies
- cd phpBB3/phpBB - cd phpBB3/phpBB
- php ../composer.phar install --dev --no-interaction --prefer-source - php ../composer.phar install --dev --no-interaction --prefer-source
# Setup the tests/travis # Setup the tests/travis
- cd ext/phpbbgallery/core - cd ext/board3
- 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"
@@ -37,5 +37,6 @@ notifications:
email: email:
recipients: recipients:
- nickvergessen@gmx.de - nickvergessen@gmx.de
- admin@m-a-styles.de
on_success: change on_success: change
on_failure: change on_failure: change