From da401d09dd1d41841a4589e77ba5682973b48d21 Mon Sep 17 00:00:00 2001 From: Tony Roman Date: Sun, 17 Sep 2017 22:21:33 -0400 Subject: [PATCH] Adding Travis-CI syntax checking --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6eb90b4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: php + +php: +- '5.4' +- '5.5' +- '5.6' +- '7.0' + +matrix: + allow_failures: + - php: 7.0 + +before_script: +- if find . -name "*.php" -exec php -l {} 2>&1 \; | grep -iv "no syntax errors detected"; then exit 1; fi + +script: true + +install: true + +notifications: + email: + on_success: change + on_failure: always + recipients: + - developers@cacti.net