Move scripts into dedicated directory

Now also using scripts/check.sh for Travis CI directly
This commit is contained in:
Martin Jäger
2021-05-18 08:47:26 +02:00
parent 84541d4311
commit 955eb0edb1
7 changed files with 7 additions and 13 deletions
+1 -5
View File
@@ -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:
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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 =
+1 -2
View File
@@ -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
+1 -2
View File
@@ -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 -------------"