Skip to content

Commit

Permalink
ci: download gcov for master tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sobuch committed Dec 17, 2024
1 parent d20cb44 commit 18cedbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab/ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,27 @@
TEST_RUN_DIR: "build_test_app_${CHIP_NAME}"
IDF_RELEASE_TAG: "latest"
TEST_RUN_RETRY: "" # Dont retry
ESP_GCOV_TOOLCHAIN: "${ESP_V5_5X_XTENSA_GCOV_TOOLCHAIN}-arm-linux-gnueabihf"

.tests_arm64_master_template:
extends: .tests_armhf_master_template
variables:
PLATFORM_NAME: "linux-arm64-test"
ESP_GCOV_TOOLCHAIN: "${ESP_V5_5X_XTENSA_GCOV_TOOLCHAIN}-aarch64-linux-gnu"

.tests_armhf_master_riscv_template:
extends: .tests_armhf_master_template
variables:
CHIP_TEST_TOOLCHAIN: "riscv32-esp"
ESP_GDB_TOOLCHAIN: "${ESP_V5_5X_RISCV_GDB_TOOLCHAIN}"
TOOLCHAIN_PREFIX: "riscv32-esp"
ESP_GCOV_TOOLCHAIN: "${ESP_V5_5X_RISCV_GCOV_TOOLCHAIN}-arm-linux-gnueabihf"

.tests_arm64_master_riscv_template:
extends: .tests_armhf_master_riscv_template
variables:
PLATFORM_NAME: "linux-arm64-test"
ESP_GCOV_TOOLCHAIN: "${ESP_V5_5X_RISCV_GCOV_TOOLCHAIN}-aarch64-linux-gnu"

.tests_armhf_v5.4.x_template:
extends: .tests_armhf_template
Expand Down
5 changes: 5 additions & 0 deletions .gitlab/ci/util.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
if [ ! -z "$ESP_GDB_TOOLCHAIN" ]; then
export PATH=${HOME}/.espressif/tools/${ESP_GDB_TOOLCHAIN}/bin:${PATH}
fi
if [ ! -z "$ESP_GCOV_TOOLCHAIN" ]; then
wget --no-cache --no-verbose https://dl.espressif.com/dl/${ESP_TOOLCHAIN}-gcov.tar.gz
tar -xvf ${ESP_TOOLCHAIN}-gcov.tar.gz
export PATH=${ESP_GCOV_TOOLCHAIN}/${TOOLCHAIN_PREFIX}-elf/bin:${PATH}
fi
.export_toolchain:
script:
- *export_toolchain_snippet
Expand Down

0 comments on commit 18cedbf

Please sign in to comment.