Skip to content

Commit

Permalink
Avoid building problem Windows code in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jan 8, 2024
1 parent 70d9e98 commit 3d5a95d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Sming/Arch/Esp32/Tools/ci/build.run.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REM Esp32 build.run.cmd

%MAKE_PARALLEL% Basic_Blink Basic_Ethernet Basic_WiFi HttpServer_ConfigNetwork DEBUG_VERBOSE_LEVEL=3 STRICT=1 || goto :error
%MAKE_PARALLEL% Basic_Ssl ENABLE_SSL=Bearssl DEBUG_VERBOSE_LEVEL=3 STRICT=1 || goto :error
%MAKE_PARALLEL% Basic_Ssl ENABLE_SSL=Axtls DEBUG_VERBOSE_LEVEL=3 STRICT=1 || goto :error

REM make sure that the Ota Library sample compiles for ESP32
%MAKE_PARALLEL% -C %SMING_HOME%\Libraries\OtaUpgradeMqtt\samples\Upgrade
Expand Down
5 changes: 4 additions & 1 deletion Tools/ci/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ cd /d %SMING_PROJECTS_DIR%/samples/Basic_Blink
make help
make list-config

if "%SMING_ARCH%" == "Esp32" set TEST_FLAGS="DISABLE_NETWORK=1"

REM HostTests must build for all architectures
%MAKE_PARALLEL% -C "%SMING_PROJECTS_DIR%/tests/HostTests" || goto :error
REM Building Bear SSL library causes memory issues with CI builds in Windows, so avoid for now
%MAKE_PARALLEL% -C "%SMING_PROJECTS_DIR%/tests/HostTests" %TEST_FLAGS% || goto :error

REM Start Arch-specific tests
cd /d %SMING_HOME%
Expand Down
15 changes: 8 additions & 7 deletions tests/HostTests/component.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ COMPONENT_SRCDIRS := \
modules \
Arch/$(SMING_ARCH)

ifneq ($(DISABLE_NETWORK),1)
COMPONENT_SRCDIRS += \
modules/Network \
modules/Network/Arch/$(SMING_ARCH)
endif

ARDUINO_LIBRARIES := \
SmingTest \
ArduinoJson5 \
Expand All @@ -30,9 +24,16 @@ ifeq ($(SMING_ARCH),Host)
endif

COMPONENT_DEPENDS := \
malloc_count \
malloc_count

ifneq ($(DISABLE_NETWORK),1)
COMPONENT_SRCDIRS += \
modules/Network \
modules/Network/Arch/$(SMING_ARCH)
COMPONENT_DEPENDS += \
axtls-8266 \
bearssl-esp8266
endif

ifeq ($(UNAME),Windows)
# Network tests run on Linux only
Expand Down
2 changes: 1 addition & 1 deletion tests/HostTests/include/modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
XX(String) \
XX(ArduinoString) \
XX(Wiring) \
XX(Crypto) \
XX_NET(Crypto) \
XX(CStringArray) \
XX(Stream) \
XX(TemplateStream) \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3d5a95d

Please sign in to comment.