woocommerce-paypal-payments/.travis.yml

24 lines
470 B
YAML
Raw Normal View History

2020-09-17 16:53:23 -03:00
language: php
os: linux
dist: xenial
notifications:
email: false
php:
- 7.0
branches:
only:
- master
- trunk
2021-07-27 15:23:57 -05:00
- compat/ppxo
2020-09-17 16:53:23 -03:00
script: |
CHANGED_FILES=`git diff --name-only --diff-filter=ACMR $TRAVIS_COMMIT_RANGE | grep \\\\.php | awk '{print}' ORS=' '`
if [ "$CHANGED_FILES" != "" ]; then
composer global require woocommerce/woocommerce-sniffs --update-with-all-dependencies
2020-09-17 18:05:41 -03:00
$HOME/.config/composer/vendor/bin/phpcs -p $CHANGED_FILES
2020-09-17 16:53:23 -03:00
fi