From a9c06e1b47e5b99446ae50e07c6d930a839ed66f Mon Sep 17 00:00:00 2001 From: Mark Nielsen Date: Wed, 18 May 2016 12:04:42 -0700 Subject: [PATCH] Fail Travis build if standards doc is out of date --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 15fb3ed..d32a7a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,8 @@ php: - 5.4 - 7.0 -script: ./vendor/bin/phpunit \ No newline at end of file +script: + - vendor/bin/phpcs --standard=POET --generator=markdown > POET.md + # If this command fails, it means the POET.md file is out of date. + - git diff-index --quiet HEAD + - vendor/bin/phpunit \ No newline at end of file