diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..355811b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# +# Important: This file is for the wp-dev-lib Travis CI runs. +# See sample-config/.travis.yml for a sample config for a WordPress project. +# + +language: php + +notifications: + email: false + +script: + - find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l # Ensure valid PHP syntax + - shellcheck *.sh || true # Run shellcheck but ignore the output + - shellcheck --format json *.sh | grep --quiet --invert-match '"level":"error"' # Fail only if shellcheck finds errors.