yii2-netdisk/.travis.yml
Gintautas Miselis 660ebb41df Upgrade to Codeception 4.0 (#218)
* Use modular Codeception 4.0
* Moved bootstrap setting to top level

Because old location is deprecated
See https://bit.ly/2YrRzVc

* Use stringContainsString instead of contains

Because using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9.

* Removed 5.4 and 5.5
2019-11-22 22:02:47 +03:00

47 lines
1.0 KiB
YAML

language: php
matrix:
fast_finish: true
include:
- php: "7.3"
- php: "7.2"
- php: "7.1"
- php: "7.0"
- php: "5.6"
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS yii2_basic_tests;'
install:
- travis_retry composer self-update && composer --version
- travis_retry composer update --dev --prefer-dist --no-interaction
# 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
# setup application:
- |
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
script:
- |
php -S localhost:8080 -t web > /dev/null 2>&1 &
vendor/bin/codecept run