language: php
php:
- 7.0
- 7.1
matrix:
fast_finish: true
services:
#- postgresql: "9.5"
- mysql
- redis-server
#Uncomment this if you need postgres with json support
#addons:
# postgresql: "9.5"
# apt:
# packages:
# - postgresql-server-dev-9.5
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
- vendor
before_install:
- sudo apt-get update -qq
install:
- phpenv config-rm xdebug.ini || echo "xdebug is not installed"
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction
before_script:
# - psql -c 'create database yii2_ext_test;' -U postgres
# - php tests/yii pgmigrate/up --interactive=0
- mysql -e 'CREATE DATABASE yii2_ext_test;'
- php tests/yii migrate/up --interactive=0
- vendor/bin/codecept build
script:
- vendor/bin/codecept run -vvv
|