2019-06-28 12:39:21 -04:00
|
|
|
.build_template:
|
|
|
|
stage: build
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
variables:
|
|
|
|
BATCH_BUILD: "1"
|
|
|
|
V: "0"
|
2020-07-21 04:00:05 -04:00
|
|
|
SIZE_INFO_LOCATION: "$CI_PROJECT_DIR/size_info.txt"
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2019-12-19 21:52:33 -05:00
|
|
|
.build_ssc_template:
|
2019-06-28 12:39:21 -04:00
|
|
|
extends: .build_template
|
|
|
|
parallel: 3
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- SSC/ssc_bin
|
|
|
|
expire_in: 1 week
|
|
|
|
variables:
|
2019-12-19 21:52:33 -05:00
|
|
|
TARGET_NAME: "ESP32"
|
2019-06-28 12:39:21 -04:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_INTEGRATION_TEST
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
script:
|
2020-06-25 01:52:00 -04:00
|
|
|
- ./tools/ci/retry_failed.sh git clone $SSC_REPOSITORY
|
2019-06-28 12:39:21 -04:00
|
|
|
- python $CHECKOUT_REF_SCRIPT SSC SSC
|
|
|
|
- cd SSC
|
2019-12-19 21:52:33 -05:00
|
|
|
- MAKEFLAGS= ./ci_build_ssc.sh $TARGET_NAME
|
|
|
|
|
|
|
|
build_ssc_esp32:
|
|
|
|
extends: .build_ssc_template
|
|
|
|
variables:
|
|
|
|
TARGET_NAME: "ESP32"
|
|
|
|
|
2020-01-16 22:47:08 -05:00
|
|
|
build_ssc_esp32s2:
|
2019-12-19 21:52:33 -05:00
|
|
|
extends: .build_ssc_template
|
|
|
|
parallel: 2
|
|
|
|
variables:
|
|
|
|
TARGET_NAME: "ESP32S2"
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2020-04-28 22:38:05 -04:00
|
|
|
.build_esp_idf_tests_cmake:
|
|
|
|
extends: .build_template
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tools/unit-test-app/output/${IDF_TARGET}
|
2020-07-21 04:59:31 -04:00
|
|
|
- tools/unit-test-app/builds/*.json
|
2020-07-21 04:00:05 -04:00
|
|
|
- tools/unit-test-app/builds/${IDF_TARGET}/*/size.json
|
2020-04-28 22:38:05 -04:00
|
|
|
- components/idf_test/unit_test/*.yml
|
2020-07-21 04:00:05 -04:00
|
|
|
- $LOG_PATH
|
|
|
|
- $SIZE_INFO_LOCATION
|
2020-04-28 22:38:05 -04:00
|
|
|
when: always
|
|
|
|
expire_in: 4 days
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_UNIT_TEST
|
|
|
|
- $BOT_LABEL_UNIT_TEST_S2
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
variables:
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/log_ut_cmake"
|
2020-07-21 04:00:05 -04:00
|
|
|
BUILD_PATH: ${CI_PROJECT_DIR}/tools/unit-test-app/builds
|
|
|
|
OUTPUT_PATH: ${CI_PROJECT_DIR}/tools/unit-test-app/output
|
|
|
|
BUILD_SYSTEM: "cmake"
|
|
|
|
TEST_TYPE: "unit_test"
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
2020-04-17 15:34:56 -04:00
|
|
|
# RISC-V toolchain is optional but ULP may need it, so install:
|
|
|
|
- $IDF_PATH/tools/idf_tools.py install riscv-none-embed-gcc
|
|
|
|
- . $IDF_PATH/export.sh
|
2020-07-21 04:00:05 -04:00
|
|
|
- ${IDF_PATH}/tools/ci/find_apps_build_apps.sh
|
2019-06-28 12:39:21 -04:00
|
|
|
- cd $CI_PROJECT_DIR/tools/unit-test-app
|
2020-07-21 04:00:05 -04:00
|
|
|
- python tools/UnitTestParser.py ${BUILD_PATH}
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2020-04-28 22:38:05 -04:00
|
|
|
build_esp_idf_tests_cmake_esp32:
|
|
|
|
extends: .build_esp_idf_tests_cmake
|
|
|
|
variables:
|
|
|
|
IDF_TARGET: esp32
|
|
|
|
|
|
|
|
build_esp_idf_tests_cmake_esp32s2:
|
|
|
|
extends: .build_esp_idf_tests_cmake
|
|
|
|
variables:
|
|
|
|
IDF_TARGET: esp32s2
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2020-04-22 02:49:05 -04:00
|
|
|
.build_examples_template:
|
2019-06-28 12:39:21 -04:00
|
|
|
extends: .build_template
|
|
|
|
parallel: 8
|
|
|
|
artifacts:
|
|
|
|
when: always
|
2019-12-11 17:38:04 -05:00
|
|
|
expire_in: 4 days
|
2019-06-28 12:39:21 -04:00
|
|
|
only:
|
2019-07-10 11:16:53 -04:00
|
|
|
# Here both 'variables' and 'refs' conditions are given. They are combined with "AND" logic.
|
2019-06-28 12:39:21 -04:00
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_EXAMPLE_TEST
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
2020-07-21 04:00:05 -04:00
|
|
|
variables:
|
|
|
|
SCAN_TEST_JSON: ${CI_PROJECT_DIR}/examples/test_configs/scan_${IDF_TARGET}_${BUILD_SYSTEM}.json
|
|
|
|
TEST_TYPE: "example_test"
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
2020-07-21 04:00:05 -04:00
|
|
|
# RISC-V toolchain is optional but ULP may need it, so install:
|
2020-04-17 15:34:56 -04:00
|
|
|
- $IDF_PATH/tools/idf_tools.py install riscv-none-embed-gcc
|
|
|
|
- . $IDF_PATH/export.sh
|
2019-06-28 12:39:21 -04:00
|
|
|
# it's not possible to build 100% out-of-tree and have the "artifacts"
|
|
|
|
# mechanism work, but this is the next best thing
|
2020-07-21 04:00:05 -04:00
|
|
|
- ${IDF_PATH}/tools/ci/find_apps_build_apps.sh
|
2020-04-22 02:49:05 -04:00
|
|
|
|
|
|
|
build_examples_make:
|
|
|
|
extends: .build_examples_template
|
|
|
|
# This is a workaround for a rarely encountered issue with building examples in CI.
|
|
|
|
# Probably related to building of Kconfig in 'make clean' stage
|
|
|
|
retry: 1
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
2020-07-21 04:00:05 -04:00
|
|
|
- build_examples/*/*/*/build/size.json
|
|
|
|
- $SIZE_INFO_LOCATION
|
2020-04-22 02:49:05 -04:00
|
|
|
variables:
|
|
|
|
LOG_PATH: "${CI_PROJECT_DIR}/log_examples_make"
|
|
|
|
BUILD_PATH: "${CI_PROJECT_DIR}/build_examples_make"
|
2020-07-21 04:00:05 -04:00
|
|
|
BUILD_SYSTEM: "make"
|
2020-04-22 02:49:05 -04:00
|
|
|
IDF_TARGET: "esp32" # currently we only support esp32
|
2020-04-22 05:05:59 -04:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
- pipelines
|
|
|
|
- web
|
2019-06-28 12:39:21 -04:00
|
|
|
|
|
|
|
# same as above, but for CMake
|
2019-06-27 07:11:15 -04:00
|
|
|
.build_examples_cmake: &build_examples_cmake
|
2020-04-22 02:49:05 -04:00
|
|
|
extends: .build_examples_template
|
2020-04-20 02:30:31 -04:00
|
|
|
dependencies:
|
|
|
|
- scan_tests
|
2019-06-28 12:39:21 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-10-17 10:23:39 -04:00
|
|
|
- build_examples/list.json
|
|
|
|
- build_examples/list_job_*.json
|
|
|
|
- build_examples/*/*/*/sdkconfig
|
2020-07-21 04:00:05 -04:00
|
|
|
- build_examples/*/*/*/build/size.json
|
2019-10-17 10:23:39 -04:00
|
|
|
- build_examples/*/*/*/build/*.bin
|
|
|
|
- build_examples/*/*/*/build/*.elf
|
|
|
|
- build_examples/*/*/*/build/*.map
|
|
|
|
- build_examples/*/*/*/build/flasher_args.json
|
|
|
|
- build_examples/*/*/*/build/bootloader/*.bin
|
|
|
|
- build_examples/*/*/*/build/partition_table/*.bin
|
2019-06-28 12:39:21 -04:00
|
|
|
- $LOG_PATH
|
2020-07-21 04:00:05 -04:00
|
|
|
- $SIZE_INFO_LOCATION
|
2019-06-28 12:39:21 -04:00
|
|
|
variables:
|
2020-04-22 02:49:05 -04:00
|
|
|
LOG_PATH: "${CI_PROJECT_DIR}/log_examples"
|
|
|
|
BUILD_PATH: "${CI_PROJECT_DIR}/build_examples"
|
2020-07-21 04:00:05 -04:00
|
|
|
BUILD_SYSTEM: "cmake"
|
2020-04-20 02:30:31 -04:00
|
|
|
|
2019-06-27 07:11:15 -04:00
|
|
|
build_examples_cmake_esp32:
|
|
|
|
extends: .build_examples_cmake
|
2020-07-23 22:29:48 -04:00
|
|
|
parallel: 10
|
2019-06-27 07:11:15 -04:00
|
|
|
variables:
|
|
|
|
IDF_TARGET: esp32
|
|
|
|
|
2019-08-07 23:44:24 -04:00
|
|
|
build_examples_cmake_esp32s2:
|
|
|
|
extends: .build_examples_cmake
|
|
|
|
variables:
|
2020-01-16 22:47:08 -05:00
|
|
|
IDF_TARGET: esp32s2
|
2019-08-07 23:44:24 -04:00
|
|
|
|
2019-10-20 14:55:11 -04:00
|
|
|
.build_test_apps: &build_test_apps
|
|
|
|
extends: .build_template
|
2020-01-27 06:12:49 -05:00
|
|
|
stage: build
|
2020-04-20 02:30:31 -04:00
|
|
|
dependencies:
|
|
|
|
- scan_tests
|
2019-10-20 14:55:11 -04:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- build_test_apps/list.json
|
|
|
|
- build_test_apps/list_job_*.json
|
|
|
|
- build_test_apps/*/*/*/sdkconfig
|
2020-07-21 04:00:05 -04:00
|
|
|
- build_test_apps/*/*/*/build/size.json
|
|
|
|
- build_test_apps/*/*/*/build/*.bin
|
2019-10-20 14:55:11 -04:00
|
|
|
- build_test_apps/*/*/*/build/*.elf
|
|
|
|
- build_test_apps/*/*/*/build/*.map
|
|
|
|
- build_test_apps/*/*/*/build/flasher_args.json
|
|
|
|
- build_test_apps/*/*/*/build/bootloader/*.bin
|
|
|
|
- build_test_apps/*/*/*/build/partition_table/*.bin
|
|
|
|
- $LOG_PATH
|
2020-07-21 04:00:05 -04:00
|
|
|
- $SIZE_INFO_LOCATION
|
2019-10-20 14:55:11 -04:00
|
|
|
expire_in: 3 days
|
|
|
|
variables:
|
2020-04-20 02:30:31 -04:00
|
|
|
LOG_PATH: "${CI_PROJECT_DIR}/log_test_apps"
|
|
|
|
BUILD_PATH: "${CI_PROJECT_DIR}/build_test_apps"
|
2020-07-21 04:00:05 -04:00
|
|
|
BUILD_SYSTEM: "cmake"
|
|
|
|
SCAN_TEST_JSON: ${CI_PROJECT_DIR}/tools/test_apps/test_configs/scan_${IDF_TARGET}_${BUILD_SYSTEM}.json
|
|
|
|
TEST_TYPE: custom_test
|
2019-10-20 14:55:11 -04:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
2020-04-03 10:34:29 -04:00
|
|
|
- $BOT_LABEL_CUSTOM_TEST
|
2019-10-20 14:55:11 -04:00
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
|
|
|
script:
|
2020-07-21 04:00:05 -04:00
|
|
|
- ${IDF_PATH}/tools/ci/find_apps_build_apps.sh
|
2019-10-20 14:55:11 -04:00
|
|
|
|
|
|
|
build_test_apps_esp32:
|
|
|
|
extends: .build_test_apps
|
|
|
|
variables:
|
|
|
|
IDF_TARGET: esp32
|
|
|
|
|
|
|
|
build_test_apps_esp32s2:
|
|
|
|
extends: .build_test_apps
|
|
|
|
variables:
|
2020-01-27 06:12:49 -05:00
|
|
|
IDF_TARGET: esp32s2
|
2019-10-20 14:55:11 -04:00
|
|
|
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
# If you want to add new build example jobs, please add it into dependencies of `.example_test_template`
|
|
|
|
|
2019-11-22 02:58:32 -05:00
|
|
|
.build_docs_template: &build_docs_template
|
2019-06-28 12:39:21 -04:00
|
|
|
stage: build
|
2020-02-17 23:08:22 -05:00
|
|
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- build_docs
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2019-11-22 02:58:32 -05:00
|
|
|
- docs/_build/*/*/*.txt
|
|
|
|
- docs/_build/*/*/html/*
|
2020-03-25 03:14:05 -04:00
|
|
|
- docs/_build/*/*/latex/*
|
2019-12-11 17:38:04 -05:00
|
|
|
expire_in: 4 days
|
2019-06-28 12:39:21 -04:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_BUILD_DOCS
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
2019-11-22 02:58:32 -05:00
|
|
|
dependencies: []
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
- cd docs
|
2020-02-18 23:24:59 -05:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
2020-03-17 20:41:41 -04:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -bs html latex -l $DOCLANG -t $DOCTGT build
|
2019-11-22 02:58:32 -05:00
|
|
|
|
|
|
|
build_docs_en_esp32:
|
|
|
|
extends: .build_docs_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "en"
|
|
|
|
DOCTGT: "esp32"
|
|
|
|
|
|
|
|
build_docs_en_esp32s2:
|
|
|
|
extends: .build_docs_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "en"
|
|
|
|
DOCTGT: "esp32s2"
|
|
|
|
|
|
|
|
build_docs_zh_CN_esp32:
|
|
|
|
extends: .build_docs_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "zh_CN"
|
|
|
|
DOCTGT: "esp32"
|
|
|
|
|
|
|
|
build_docs_zh_CN_esp32s2:
|
|
|
|
extends: .build_docs_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "zh_CN"
|
|
|
|
DOCTGT: "esp32s2"
|
2019-06-28 12:39:21 -04:00
|
|
|
|
|
|
|
test_build_system:
|
|
|
|
extends: .build_template
|
2020-05-04 00:23:54 -04:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
|
|
|
|
- rm -rf test_build_system
|
|
|
|
- mkdir test_build_system
|
|
|
|
- cd test_build_system
|
|
|
|
- ${IDF_PATH}/tools/ci/test_build_system.sh
|
|
|
|
|
|
|
|
test_build_system_cmake:
|
|
|
|
extends: .build_template
|
2020-05-04 00:23:54 -04:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
|
|
|
|
- rm -rf test_build_system
|
|
|
|
- mkdir test_build_system
|
|
|
|
- cd test_build_system
|
|
|
|
- ${IDF_PATH}/tools/ci/test_build_system_cmake.sh
|
2019-07-08 12:42:46 -04:00
|
|
|
|
2019-10-30 10:00:18 -04:00
|
|
|
test_build_system_cmake_macos:
|
|
|
|
extends: .macos_build_template
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
- triggers
|
|
|
|
- pipelines
|
|
|
|
- web
|
|
|
|
variables:
|
|
|
|
- $CI_PIPELINE_SOURCE != "push" && $BOT_LABEL_MACOS_TEST != null
|
|
|
|
- $CI_PIPELINE_SOURCE == "push"
|
|
|
|
script:
|
|
|
|
- ${IDF_PATH}/tools/ci/test_configure_ci_environment.sh
|
|
|
|
- rm -rf test_build_system
|
|
|
|
- mkdir test_build_system
|
|
|
|
- cd test_build_system
|
|
|
|
- ${IDF_PATH}/tools/ci/test_build_system_cmake.sh
|
|
|
|
|
2019-07-08 12:42:46 -04:00
|
|
|
build_docker:
|
|
|
|
stage: build
|
|
|
|
image: espressif/docker-builder:1
|
|
|
|
tags:
|
|
|
|
- build_docker_amd64_brno
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
DOCKER_TMP_IMAGE_NAME: "idf_tmp_image"
|
|
|
|
before_script: []
|
|
|
|
script:
|
|
|
|
- export DOCKER_BUILD_ARGS="--build-arg IDF_CLONE_URL=${CI_REPOSITORY_URL} --build-arg IDF_CLONE_BRANCH_OR_TAG=${CI_COMMIT_REF_NAME} --build-arg IDF_CHECKOUT_REF=${CI_COMMIT_TAG:-$CI_COMMIT_SHA}"
|
|
|
|
# Build
|
|
|
|
- docker build --tag ${DOCKER_TMP_IMAGE_NAME} ${DOCKER_BUILD_ARGS} tools/docker/
|
|
|
|
# We can't mount $PWD/examples/get-started/blink into the container, see https://gitlab.com/gitlab-org/gitlab-ce/issues/41227.
|
|
|
|
# The workaround mentioned there works, but leaves around directories which need to be cleaned up manually.
|
|
|
|
# Therefore, build a copy of the example located inside the container.
|
|
|
|
- docker run --rm --workdir /opt/esp/idf/examples/get-started/blink ${DOCKER_TMP_IMAGE_NAME} idf.py build
|
2019-07-18 11:34:36 -04:00
|
|
|
|
|
|
|
build_idf_exe:
|
|
|
|
stage: build
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-toolchain-win-cross
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
before_script: []
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tools/windows/idf_exe/build/idf-exe-v*.zip
|
2019-12-11 17:38:04 -05:00
|
|
|
expire_in: 4 days
|
2019-07-18 11:34:36 -04:00
|
|
|
script:
|
|
|
|
- cd tools/windows/idf_exe/
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-i686-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
- cmake --build .
|
|
|
|
|
|
|
|
build_cmdlinerunner:
|
|
|
|
stage: build
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-toolchain-win-cross
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
before_script: []
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tools/windows/tool_setup/cmdlinerunner/build/cmdlinerunner.dll
|
2019-12-11 17:38:04 -05:00
|
|
|
expire_in: 4 days
|
2019-07-18 11:34:36 -04:00
|
|
|
script:
|
|
|
|
- cd tools/windows/tool_setup/cmdlinerunner
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-i686-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
- cmake --build .
|
|
|
|
|
|
|
|
build_installer:
|
|
|
|
# using a different stage here to be able to use artifacts from build_cmdlinerunner job
|
|
|
|
stage: host_test
|
|
|
|
image: $CI_DOCKER_REGISTRY/wine-innosetup:1
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
dependencies:
|
|
|
|
- build_cmdlinerunner
|
|
|
|
before_script: []
|
|
|
|
script:
|
|
|
|
- cd tools/windows/tool_setup/
|
2019-09-22 23:42:01 -04:00
|
|
|
- ./build_installer.sh
|
2020-07-15 12:18:33 -04:00
|
|
|
|
|
|
|
# This job builds template app with permutations of targets and optimization levels
|
|
|
|
build_template_app:
|
|
|
|
extends: .build_template_app_template
|
2020-07-09 23:24:33 -04:00
|
|
|
|
|
|
|
# Sonarqube related jobs put here for this reason:
|
|
|
|
# Here we have two jobs. code_quality_check and code_quality_report.
|
|
|
|
#
|
|
|
|
# code_quality_check will analyze the code changes between your MR and
|
|
|
|
# code repo stored in sonarqube server. The analysis result is only shown in
|
|
|
|
# the comments under this MR and won't be transferred to the server.
|
|
|
|
#
|
|
|
|
# code_quality_report will analyze and transfer both of the newly added code
|
|
|
|
# and the analysis result to the server.
|
|
|
|
#
|
|
|
|
# Put in the front to ensure that the newly merged code can be stored in
|
|
|
|
# sonarqube server ASAP, in order to avoid reporting unrelated code issues
|
|
|
|
.sonar_scan_template:
|
|
|
|
stage: build
|
|
|
|
image:
|
|
|
|
name: $CI_DOCKER_REGISTRY/sonarqube-scanner:1
|
|
|
|
before_script:
|
|
|
|
- export PYTHONPATH="$CI_PROJECT_DIR/tools:$CI_PROJECT_DIR/tools/ci/python_packages:$PYTHONPATH"
|
|
|
|
- python $SUBMODULE_FETCH_TOOL
|
|
|
|
# Exclude the submodules, all paths ends with /**
|
|
|
|
# get all submodules configs | get all paths | add /** as suffix | xargs | replace all <space> to <comma>
|
|
|
|
- export SUBMODULES=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | sed -e 's|$|/**|' | xargs | sed -e 's/ /,/g')
|
|
|
|
# Exclude the report dir
|
|
|
|
- export EXCLUSIONS="$SUBMODULES,$REPORT_DIR/**,docs/_static/**,**/*.png,**/*.jpg"
|
|
|
|
- python $NORMALIZE_CLANGTIDY_PY $CI_PROJECT_DIR/$REPORT_DIR/warnings.txt $CI_PROJECT_DIR/$REPORT_DIR/clang_tidy_report.txt $CI_PROJECT_DIR
|
|
|
|
variables:
|
|
|
|
GIT_DEPTH: 0
|
|
|
|
NORMALIZE_CLANGTIDY_PY: $CI_PROJECT_DIR/tools/ci/normalize_clangtidy_path.py
|
|
|
|
REPORT_DIR: examples/get-started/hello_world/tidybuild/report
|
|
|
|
tags:
|
|
|
|
- host_test
|
|
|
|
|
|
|
|
code_quality_check:
|
|
|
|
extends: .sonar_scan_template
|
|
|
|
dependencies:
|
|
|
|
- clang_tidy_check_regular_for_MR_review
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
script:
|
|
|
|
- sonar-scanner -X
|
|
|
|
-Dsonar.analysis.mode=preview
|
|
|
|
-Dsonar.host.url=$SONAR_HOST_URL
|
|
|
|
-Dsonar.login=$SONAR_LOGIN
|
|
|
|
-Dsonar.sources=$CI_PROJECT_DIR
|
|
|
|
-Dsonar.sourceEncoding=UTF-8
|
|
|
|
-Dsonar.projectKey=esp-idf
|
|
|
|
-Dsonar.projectBaseDir=$CI_PROJECT_DIR
|
|
|
|
-Dsonar.exclusions=$EXCLUSIONS
|
|
|
|
-Dsonar.gitlab.project_id=$CI_PROJECT_ID
|
|
|
|
-Dsonar.gitlab.commit_sha=$(git log --pretty=format:%H origin/master..origin/$CI_COMMIT_REF_NAME | tr '\n' ',')
|
|
|
|
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
|
|
|
|
-Dsonar.cxx.clangtidy.reportPath=$REPORT_DIR/clang_tidy_report.txt
|
|
|
|
-Dsonar.cxx.includeDirectories=components,/usr/include
|
|
|
|
-Dsonar.python.pylint_config=.pylintrc
|
|
|
|
-Dsonar.gitlab.ci_merge_request_iid=$CI_MERGE_REQUEST_IID
|
|
|
|
-Dsonar.gitlab.merge_request_discussion=true
|
|
|
|
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
|
|
|
|
|
|
|
|
code_quality_report:
|
|
|
|
extends: .sonar_scan_template
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- schedules
|
|
|
|
dependencies:
|
|
|
|
- clang_tidy_check_regular
|
|
|
|
script:
|
|
|
|
- sonar-scanner
|
|
|
|
-Dsonar.host.url=$SONAR_HOST_URL
|
|
|
|
-Dsonar.login=$SONAR_LOGIN
|
|
|
|
-Dsonar.sources=$CI_PROJECT_DIR
|
|
|
|
-Dsonar.sourceEncoding=UTF-8
|
|
|
|
-Dsonar.projectKey=esp-idf
|
|
|
|
-Dsonar.projectBaseDir=$CI_PROJECT_DIR
|
|
|
|
-Dsonar.exclusions=$EXCLUSIONS
|
|
|
|
-Dsonar.gitlab.project_id=$CI_PROJECT_ID
|
|
|
|
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA
|
|
|
|
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
|
|
|
|
-Dsonar.cxx.clangtidy.reportPath=$REPORT_DIR/clang_tidy_report.txt
|
|
|
|
-Dsonar.cxx.includeDirectories=components,/usr/include
|
|
|
|
-Dsonar.python.pylint_config=.pylintrc
|
|
|
|
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
|