JoryHogeveen/view-admin-as

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
# This uses newer and faster docker based build system
sudo: false

language: php

notifications:
  on_success: never
  on_failure: change

services:
  - mysql

php:
  - 7.4
  - 5.6

env:
#    - WP_VERSION=bleeding WP_MULTISITE=0
#    - WP_VERSION=bleeding-maintenance WP_MULTISITE=0
    - WP_VERSION=latest WP_MULTISITE=0
    - WP_VERSION=latest WP_MULTISITE=1

matrix:
    allow_failures:
      - php: nightly # PHP 8.x
      - env: WP_VERSION=bleeding WP_MULTISITE=0
#     - env: WP_VERSION=bleeding-maintenance WP_MULTISITE=0

    include:
    - php: nightly
      env: WP_VERSION=bleeding WP_MULTISITE=0
    - php: nightly
      env: WP_VERSION=latest WP_MULTISITE=0
    - php: 7.3
      env: WP_VERSION=latest WP_MULTISITE=0
    - php: 7.0
      env: WP_VERSION=latest WP_MULTISITE=0
    - php: 5.6
      env: WP_VERSION=5.3 WP_MULTISITE=0

## Cache composer bits
cache:
  apt: true
  directories:
    - vendor
    - $HOME/.composer/cache

before_script:
  - if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != 'nightly' ]]; then
      phpenv config-rm xdebug.ini;
    fi

# Install composer packages before trying to activate themes or plugins
  - if [[ $TRAVIS_PHP_VERSION != 5.2 ]]; then
      composer self-update;
      composer install --no-interaction --prefer-source;
    fi

#  - git clone https://github.com/Seravo/wordpress-test-template wp-tests
  - bash bin/install-wp-tests.sh test root '' localhost $WP_VERSION

script:
  - vendor/bin/phpunit
#  - cd tests/spec && bundle exec rspec test.rb