mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-09-05 18:03:34 +00:00
c322dff62c
Travis currently has issues authenticating to GitHub. Disabling composer update gets around that.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
language: php
|
|
|
|
php:
|
|
- 5.3
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
|
|
services:
|
|
- memcached
|
|
- redis-server
|
|
|
|
before_script:
|
|
# - composer self-update
|
|
# - composer update
|
|
- pyrus install -f pear/PHP_CodeSniffer-1.5.5
|
|
- pyrus install -f pear/Cache_Lite
|
|
- phpenv rehash
|
|
# Set up databases for testing
|
|
- mysql -e 'create database joomla_ut;'
|
|
- mysql joomla_ut < tests/unit/schema/mysql.sql
|
|
- psql -c 'create database joomla_ut;' -U postgres
|
|
- psql -d joomla_ut -a -f tests/unit/schema/postgresql.sql
|
|
# Set up Apache
|
|
# - ./build/travis/php-apache.sh
|
|
# Enable additional PHP extensions
|
|
- phpenv config-add build/travis/phpenv/memcached.ini
|
|
- phpenv config-add build/travis/phpenv/apc-$TRAVIS_PHP_VERSION.ini
|
|
- phpenv config-add build/travis/phpenv/redis.ini
|
|
|
|
script:
|
|
- phpunit --configuration travisci-phpunit.xml
|
|
- phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .
|
|
|
|
branches:
|
|
except:
|
|
- 2.5.x
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/18687d008d633d02aa84
|
|
on_success: change # options: [always|never|change] default: always
|
|
on_failure: always # options: [always|never|change] default: always
|
|
on_start: false # default: false
|
|
|