From 67c5bc5504930f21cb622bd0f76a89edbf14486d Mon Sep 17 00:00:00 2001 From: Martin Jaeger <17674105+martinjaeger@users.noreply.github.com> Date: Thu, 21 Nov 2019 07:45:16 +0100 Subject: [PATCH] Check for trailing whitespaces added to TravisCI Rationale: Many editors (inclding mine) are set to automatically remove trailing whitespaces. Updating files with trailing spaces creates distracting additional lines in diffs. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8a6a62a..9b1a0f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,8 @@ addons: - doxygen script: + # check for trailing white spaces (comparing with first commit in git log) + - git diff --check `git rev-list HEAD | tail -n 1`..$TRAVIS_BRANCH - cp src/config.h_template src/config.h - platformio run -e mppt-2420-lc-v0.10 -e mppt-1210-hus-v0.7 -e pwm-2420-lus-v0.3 - platformio test -e unit-test-native