mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
20 lines
600 B
YAML
20 lines
600 B
YAML
sudo: required
|
|
dist: trusty
|
|
language: php
|
|
php: 7.2
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
|
|
|
install:
|
|
- bash bin/install-wp-tests.sh wporg_5ftf_test root '' localhost $WP_VERSION
|
|
- composer install
|
|
|
|
before_script:
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
script:
|
|
- composer run-script test -- --version
|
|
- composer run-script test -- -c phpunit.xml.dist
|
|
- touch $TRAVIS_BUILD_DIR/tmp.php
|
|
- export CHANGED_FILES=$(git diff --name-only --diff-filter=AM $TRAVIS_BRANCH...HEAD | tr '\n' ' ')
|
|
- composer run-script phpcs $TRAVIS_BUILD_DIR/tmp.php $(echo $CHANGED_FILES) -- -n
|