File: /home/u547966/brikov.ru/www_old_1/wp-content/plugins/menu-image/.travis.yml
language: php
branches:
only:
- master
- /^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/
services:
- mysql
cache:
apt: true
directories:
- $HOME/.composer/cache/files
notifications:
email:
on_success: never
on_failure: change
php:
- 7.1
- 7.2
- nightly
env:
global:
- COMPOSER_NO_INTERACTION=1
matrix:
- WP_VERSION=nightly WP_THEME=twentyseventeen
- WP_VERSION=nightly WP_THEME=twentysixteen
- WP_VERSION=nightly WP_THEME=twentyfifteen
- WP_VERSION=latest WP_THEME=twentyseventeen
- WP_VERSION=latest WP_THEME=twentysixteen
- WP_VERSION=latest WP_THEME=twentyfifteen
matrix:
allow_failures:
- php: nightly
- env: WP_VERSION=nightly
fast_finish: true
before_install:
- export PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
- export PATH="$TRAVIS_BUILD_DIR/bin:$PATH"
- wget -qO- https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 | tar xj -C /tmp
install:
- composer install --quiet --dev --prefer-dist --no-suggest
- ./vendor/bin/wp core download --version=$WP_VERSION --path=/tmp/wp
- cp .env.default .env
- bash -v tests/setup.sh
before_script:
- /tmp/phantomjs-1.9.8-linux-x86_64/bin/phantomjs --webdriver=4444 > /dev/null 2>&1 &
- php -S localhost:8080 -t /tmp/wp > /dev/null 2>&1 &
script:
- ./vendor/bin/codecept run