mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-52472-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
588da1653d
1 changed files with 7 additions and 34 deletions
41
.travis.yml
41
.travis.yml
|
@ -12,21 +12,12 @@ notifications:
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
# Moodle supports versions 5.4, 5.5, and 5.6 of PHP.
|
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
|
||||||
# Order by fastest to slowest.
|
- 7.0
|
||||||
# We currently only run the highest and lowest versions to reduce the load on travis-ci.org.
|
# - 5.6
|
||||||
- 5.6
|
|
||||||
# - 5.5
|
# - 5.5
|
||||||
- 5.4
|
- 5.4
|
||||||
|
|
||||||
# We hope to offer PHP 7 support in the near future.
|
|
||||||
- nightly
|
|
||||||
|
|
||||||
services:
|
|
||||||
# Ensure that memcached and mongodb are running for testing of those MUC stores.
|
|
||||||
- memcached
|
|
||||||
- mongodb
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
|
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
|
||||||
# start first so that the total run time is not too high.
|
# start first so that the total run time is not too high.
|
||||||
|
@ -50,29 +41,18 @@ matrix:
|
||||||
# It will not stop the jobs from running.
|
# It will not stop the jobs from running.
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
# Always allow failure on nightly.
|
|
||||||
# It's a nightly build and failures can happen.
|
|
||||||
allow_failures:
|
|
||||||
- php: nightly
|
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
# PHP 7 is not yet supported for actual runs.
|
|
||||||
# Exclude it by default - we include it for CITEST only later.
|
|
||||||
- php: nightly
|
|
||||||
|
|
||||||
# MySQL - it's just too slow.
|
# MySQL - it's just too slow.
|
||||||
# Exclude it on all versions except for 5.6.
|
# Exclude it on all versions except for 7.0
|
||||||
|
# - env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
|
||||||
|
# php: 5.6
|
||||||
|
#
|
||||||
# - env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
|
# - env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
|
||||||
# php: 5.5
|
# php: 5.5
|
||||||
|
|
||||||
- env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
|
- env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
|
||||||
php: 5.4
|
php: 5.4
|
||||||
|
|
||||||
include:
|
|
||||||
# Attempt to run the CITEST set on PHP 7.
|
|
||||||
- php: nightly
|
|
||||||
env: DB=none PHPUNIT=false INSTALL=false CITEST=true
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.composer/cache
|
- $HOME/.composer/cache
|
||||||
|
@ -86,10 +66,6 @@ install:
|
||||||
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
|
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
|
||||||
- travis_retry composer install --prefer-dist --no-interaction
|
- travis_retry composer install --prefer-dist --no-interaction
|
||||||
|
|
||||||
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
||||||
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
||||||
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- >
|
- >
|
||||||
if [ "$INSTALL" = 'true' -o "$PHPUNIT" = 'true' ];
|
if [ "$INSTALL" = 'true' -o "$PHPUNIT" = 'true' ];
|
||||||
|
@ -144,9 +120,6 @@ before_script:
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
|
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
|
||||||
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
|
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
|
||||||
-e "/require_once/i define('TEST_CACHESTORE_MEMCACHE_TESTSERVERS', '127.0.0.1:11211');" \
|
|
||||||
-e "/require_once/i define('TEST_CACHESTORE_MEMCACHED_TESTSERVERS', '127.0.0.1:11211');" \
|
|
||||||
-e "/require_once/i define('TEST_CACHESTORE_MONGODB_TESTSERVER', 'mongodb://localhost:27017');" \
|
|
||||||
config.php ;
|
config.php ;
|
||||||
|
|
||||||
# Initialise PHPUnit for Moodle.
|
# Initialise PHPUnit for Moodle.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue