2015-03-22 20:14:19 +01:00
|
|
|
language: php
|
|
|
|
|
2019-09-04 01:50:29 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- php: "7.3"
|
|
|
|
- php: "7.2"
|
|
|
|
- php: "7.1"
|
|
|
|
- php: "7.0"
|
|
|
|
- php: "5.6"
|
2015-03-22 20:14:19 +01:00
|
|
|
|
|
|
|
# faster builds on new travis setup not using sudo
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2018-12-05 18:15:52 +01:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS yii2_basic_tests;'
|
|
|
|
|
2015-03-22 20:14:19 +01:00
|
|
|
install:
|
|
|
|
- travis_retry composer self-update && composer --version
|
2016-07-25 02:38:25 +03:00
|
|
|
- travis_retry composer update --dev --prefer-dist --no-interaction
|
2017-11-03 01:36:10 +03:00
|
|
|
# install php extensions
|
|
|
|
- |
|
|
|
|
if (php --version | grep -i HipHop > /dev/null); then
|
|
|
|
echo "Skipping imagick and gmagick tests on HHVM"
|
|
|
|
else
|
|
|
|
pear config-set preferred_state beta
|
|
|
|
printf "\n" | pecl install imagick
|
|
|
|
# gmagick is not installed on travis currently
|
|
|
|
#printf "\n" | pecl install gmagick
|
|
|
|
fi
|
2015-03-22 20:14:19 +01:00
|
|
|
# setup application:
|
|
|
|
- |
|
|
|
|
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
2016-07-25 02:38:25 +03:00
|
|
|
php -S localhost:8080 -t web > /dev/null 2>&1 &
|
2017-06-17 17:23:21 +03:00
|
|
|
vendor/bin/codecept run
|