Remove PlatformIO support
Rationale: Too much effort to maintain two different tool chains. PlatformIO does not consider the west.yml files and thus, does not support custom Zephyr modules. However, they are needed to include ThingSet as a module. In addition to that, PlatformIO versions always lag behind official Zephyr releases and we want to avoid being dependent on PlatformIO.
This commit is contained in:
+37
-8
@@ -2,12 +2,14 @@
|
||||
:: This file performs continuous integration checks and should be run before pushing new commits
|
||||
|
||||
echo "---------- Trailing whitespace check -------------"
|
||||
|
||||
:: check uncommitted changes
|
||||
git diff --check HEAD
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
:: check all commits starting from initial commit
|
||||
for /F %i in ('"git rev-list --max-parents=0 HEAD"') do git diff --check %i..HEAD
|
||||
if errorlevel 1 (
|
||||
@@ -16,24 +18,51 @@ if errorlevel 1 (
|
||||
)
|
||||
|
||||
echo "---------- Running compile check -------------"
|
||||
platformio run -e mppt_2420_lc -e mppt_1210_hus -e mppt_2420_hc -e pwm_2420_lus
|
||||
|
||||
cd zephyr
|
||||
|
||||
west build -b mppt_2420_hc@0.2
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
west build -b mppt_2420_lc
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
west build -b mppt_1210_hus@0.7
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
west build -b pwm_2420_lus@0.3
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
cd ..
|
||||
|
||||
echo "---------- Running unit-tests -------------"
|
||||
platformio test -e unit_test
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo "---------- Running static code checks -------------"
|
||||
platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high
|
||||
cd tests
|
||||
west build -b native_posix -t run
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
cd ..
|
||||
|
||||
:: echo "---------- Running static code checks -------------"
|
||||
|
||||
:: platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high
|
||||
:: if errorlevel 1 (
|
||||
:: echo Failure Reason is %errorlevel%
|
||||
:: exit /b %errorlevel%
|
||||
:: )
|
||||
|
||||
echo "---------- All tests passed -------------"
|
||||
|
||||
+22
-19
@@ -3,34 +3,37 @@
|
||||
# This file performs continuous integration checks and should be run before pushing new commits
|
||||
#
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
|
||||
# use board-specific directory
|
||||
west config build.dir-fmt "build/{board}"
|
||||
|
||||
echo "---------- Trailing whitespace check -------------"
|
||||
|
||||
# check uncommitted changes
|
||||
git diff --check HEAD
|
||||
if [ $? != 0 ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# check all commits starting from initial commit
|
||||
git diff --check `git rev-list --max-parents=0 HEAD`..HEAD
|
||||
if [ $? != 0 ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "---------- Running compile check -------------"
|
||||
platformio run -e mppt_2420_lc -e mppt_1210_hus -e mppt_2420_hc -e pwm_2420_lus
|
||||
if [ $? != 0 ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
cd zephyr
|
||||
west build -b mppt_2420_hc@0.2
|
||||
west build -b mppt_2420_lc
|
||||
west build -b mppt_1210_hus@0.7
|
||||
west build -b pwm_2420_lus@0.3
|
||||
cd ..
|
||||
|
||||
echo "---------- Running unit-tests -------------"
|
||||
platformio test -e unit_test
|
||||
if [ $? != 0 ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "---------- Running static code checks -------------"
|
||||
platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high
|
||||
if [ $? != 0 ]; then
|
||||
exit 1;
|
||||
fi
|
||||
cd tests
|
||||
west build -b native_posix -t run
|
||||
cd ..
|
||||
|
||||
#echo "---------- Running static code checks -------------"
|
||||
|
||||
#platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high
|
||||
|
||||
echo "---------- All tests passed -------------"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
|
||||
# Custom settings, as referred to as "extra_script" in platformio.ini
|
||||
#
|
||||
# See http://docs.platformio.org/en/latest/projectconf.html#extra-script
|
||||
|
||||
Import("env")
|
||||
|
||||
env.Append( CXXFLAGS=[ "-Wno-register -fno-rtti" ] )
|
||||
Reference in New Issue
Block a user