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.
This commit is contained in:
Martin Jaeger
2019-11-21 07:45:16 +01:00
parent 74b765e801
commit 67c5bc5504
+2
View File
@@ -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