2019-11-15 17:40:18 +02:00
|
|
|
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' ' ')
|
2019-11-15 19:04:51 +02:00
|
|
|
- echo $CHANGED_FILES
|
2019-11-15 17:40:18 +02:00
|
|
|
- composer run-script phpcs $TRAVIS_BUILD_DIR/tmp.php $(echo $CHANGED_FILES) -- -n
|