Skip to content

Commit c5c7359

Browse files
committed
ci: add simple test on macos host
1 parent d748c07 commit c5c7359

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ stages:
99
- test_idf4.x
1010
- test_idf5.x
1111
- test_idf_master
12-
- test_windows
12+
- test_host
1313
- test_nuttx
1414
- coverage
1515
- sanitizer_tests

.gitlab/ci/test.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ tests_armhf_esp32c3_idf4.x_flash_encrypted:
447447
TEST_RUN_DIR: "build_test_app_esp32c3_idf4.x"
448448
TEST_RUN_EXTRA_OPTS: "-i $TEST_APP_IDF4_X_RELEASE_TAG -b esp32c3-ftdi -p test_*.*SingleEncrypted"
449449

450-
###########
451-
# WINDOWS #
452-
###########
450+
#############
451+
# HOST TEST #
452+
#############
453453

454454
tests_win_simple_esp32:
455-
stage: test_windows
455+
stage: test_host
456456
tags:
457457
- test_jtag_win
458458
needs:
@@ -471,6 +471,25 @@ tests_win_simple_esp32:
471471
- echo $OPENOCD_SCRIPTS
472472
- .\openocd-esp32\bin\openocd.exe -f board\esp32-ethernet-kit-3.3v.cfg -c "init; reset halt; sleep 5; exit"
473473

474+
tests_macos_simple_esp32:
475+
stage: test_host
476+
tags:
477+
- macos_shell
478+
needs:
479+
- job: build_macos
480+
variables:
481+
# actually we don't need the project sources, but we need the `git clean` gitlab-runner's stage.
482+
# It's possible only for `fetch` or `clone`.
483+
GIT_STRATEGY: fetch
484+
PLATFORM_NAME: "macos"
485+
before_script: []
486+
script:
487+
- ARCHIVE_NAME=$(cat "$DIST_ART_DIR/dist_name_$PLATFORM_NAME")
488+
- echo $ARCHIVE_NAME
489+
- tar xzf $DIST_ART_DIR/$ARCHIVE_NAME openocd-esp32
490+
- ./openocd-esp32/bin/openocd --version
491+
#- ./openocd-esp32/bin/openocd -f board\esp32-ethernet-kit-3.3v.cfg -c "init; reset halt; sleep 5; exit"
492+
474493
###########
475494
# NUTTX #
476495
###########

0 commit comments

Comments
 (0)