diff --git a/.travis.yml b/.travis.yml index 6ab8436..7e5de99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,11 +21,7 @@ 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`.. - - platformio run -e mppt_2420_lc -e mppt_1210_hus -e mppt_2420_hc -e pwm_2420_lus - - platformio test -e unit_test - - platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high + - bash scripts/check.sh - doxygen Doxyfile deploy: diff --git a/README.md b/README.md index 2ea0959..61ea37b 100644 --- a/README.md +++ b/README.md @@ -150,10 +150,10 @@ The documentation auto-generated by Doxygen can be found [here](https://libre.so ## Conformance testing We are using Travis CI to perform several checks for each commit or pull-request. In order to run -the same tests locally (recommended before pushing to the server) use the script `check.sh` or ` check.bat`: +the same tests locally (recommended before pushing to the server) use the script `check.sh` or ` check.bat` in the `scripts` folder: - bash check.sh # Linux - cmd check.bat # Windows + bash scripts/check.sh # Linux + cmd scripts\check.bat # Windows ### Unit-tests diff --git a/platformio.ini b/platformio.ini index 7f4001e..3e73c80 100644 --- a/platformio.ini +++ b/platformio.ini @@ -45,7 +45,7 @@ build_flags = # Below flags are only valid for C++ and create warnings for C files, so we add them as # CXXFLAGS in extra_script. build_unflags = -Wno-register -fno-rtti -extra_scripts = platformio-extra.py +extra_scripts = scripts/platformio-extra.py check_tool = cppcheck, clangtidy check_flags = diff --git a/check.bat b/scripts/check.bat similarity index 89% rename from check.bat rename to scripts/check.bat index ed93ed8..e354925 100644 --- a/check.bat +++ b/scripts/check.bat @@ -1,6 +1,5 @@ @ECHO OFF -:: This batch file performs the same checks as TravisCI and should be run after each commit and -:: before pushing the commits +:: This file performs continuous integration checks and should be run before pushing new commits echo "---------- Trailing whitespace check -------------" :: check uncommitted changes diff --git a/check.sh b/scripts/check.sh similarity index 87% rename from check.sh rename to scripts/check.sh index ff7e07d..c8515bc 100755 --- a/check.sh +++ b/scripts/check.sh @@ -1,7 +1,6 @@ #!/bin/bash # -# This file performs the same checks as TravisCI and should be run after each commit and before -# pushing the commits +# This file performs continuous integration checks and should be run before pushing new commits # echo "---------- Trailing whitespace check -------------" diff --git a/grabber.py b/scripts/data-nodes-parser.py similarity index 100% rename from grabber.py rename to scripts/data-nodes-parser.py diff --git a/platformio-extra.py b/scripts/platformio-extra.py similarity index 100% rename from platformio-extra.py rename to scripts/platformio-extra.py