mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
* develop-olympus: [ticket/10981] Added check for PHP version before running composer [ticket/10981] Modified travis to use composer with --dev [ticket/10981] Removed setupBeforeClass [ticket/10981] Modified functional framework to account for goutte changes [ticket/10981] Added goutte via composer Conflicts: .travis.yml composer.phar phpBB/composer.json phpBB/composer.lock tests/bootstrap.php
30 lines
704 B
YAML
30 lines
704 B
YAML
language: php
|
|
php:
|
|
- 5.3.3
|
|
- 5.3
|
|
- 5.4
|
|
|
|
env:
|
|
- DB=mysql
|
|
- DB=postgres
|
|
|
|
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"
|
|
- pyrus install --force phpunit/DbUnit
|
|
- phpenv rehash
|
|
- cd phpBB
|
|
- php ../composer.phar install --dev
|
|
- cd ../
|
|
|
|
script:
|
|
- phpunit --configuration travis/phpunit-$DB-travis.xml
|
|
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- dev-team@phpbb.com
|
|
on_success: change
|
|
on_failure: change
|