Skip to content

Commit

Permalink
Add Travis integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeatorres committed Sep 17, 2020
1 parent 6390b52 commit f2b4cc6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: php
os: linux
dist: xenial

notifications:
email: false

php:
- 7.0

branches:
only:
- master
- trunk

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
.config/composer/vendor/bin/phpcs -p $CHANGED_FILES
fi

0 comments on commit f2b4cc6

Please sign in to comment.