2019-11-12 07:59:11 +00:00
|
|
|
check_line_endings:
|
|
|
|
extends: .check_job_template
|
|
|
|
script:
|
|
|
|
- tools/ci/check-line-endings.sh ${IDF_PATH}
|
|
|
|
|
|
|
|
check_permissions:
|
|
|
|
extends: .check_job_template
|
|
|
|
script:
|
|
|
|
- tools/ci/check-executable.sh
|
|
|
|
|
2019-11-22 07:58:32 +00:00
|
|
|
check_docs_lang_sync:
|
|
|
|
extends: .check_job_template
|
|
|
|
stage: pre_check
|
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "none"
|
|
|
|
script:
|
|
|
|
- cd docs
|
|
|
|
- ./check_lang_folder_sync.sh
|
|
|
|
|
|
|
|
check_docs_gh_links:
|
|
|
|
extends: .build_docs_template
|
|
|
|
stage: pre_check
|
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "none"
|
|
|
|
script:
|
|
|
|
- cd docs
|
2020-02-19 04:24:59 +00:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
2020-02-04 06:36:23 +00:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py gh-linkcheck
|
2019-11-22 07:58:32 +00:00
|
|
|
|
2019-11-12 07:59:11 +00:00
|
|
|
check_version:
|
|
|
|
extends: .check_job_template
|
|
|
|
# Don't run this for feature/bugfix branches, so that it is possible to modify
|
|
|
|
# esp_idf_version.h in a branch before tagging the next version.
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
script:
|
|
|
|
- export IDF_PATH=$PWD
|
|
|
|
- tools/ci/check_idf_version.sh
|
|
|
|
|
|
|
|
check_examples_cmake_make:
|
|
|
|
extends: .check_job_template_with_filter
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
script:
|
|
|
|
- tools/ci/check_examples_cmake_make.sh
|
|
|
|
|
2020-06-19 04:00:58 +00:00
|
|
|
check_rom_api_header:
|
2019-11-12 07:59:11 +00:00
|
|
|
extends: .check_job_template_with_filter
|
|
|
|
script:
|
|
|
|
- tools/ci/check_examples_rom_header.sh
|
2020-06-19 04:00:58 +00:00
|
|
|
- tools/ci/check_rom_apis.sh
|
2019-11-12 07:59:11 +00:00
|
|
|
|
|
|
|
check_python_style:
|
2020-05-19 13:53:21 +00:00
|
|
|
extends: .python_lint_template
|
2019-11-12 07:59:11 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- flake8_output.txt
|
|
|
|
expire_in: 1 week
|
|
|
|
script:
|
2020-01-01 05:04:50 +00:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh python -m flake8 --config=$IDF_PATH/.flake8 --output-file=flake8_output.txt --tee --benchmark $IDF_PATH
|
2019-11-12 07:59:11 +00:00
|
|
|
|
|
|
|
check_kconfigs:
|
|
|
|
extends: .check_job_template_with_filter
|
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- components/*/Kconfig*.new
|
|
|
|
- examples/*/*/*/Kconfig*.new
|
|
|
|
- examples/*/*/*/*/Kconfig*.new
|
|
|
|
- tools/*/Kconfig*.new
|
|
|
|
- tools/*/*/Kconfig*.new
|
|
|
|
- tools/*/*/*/Kconfig*.new
|
|
|
|
expire_in: 1 week
|
|
|
|
script:
|
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh ${IDF_PATH}/tools/test_check_kconfigs.py
|
|
|
|
- ${IDF_PATH}/tools/check_kconfigs.py
|
|
|
|
|
|
|
|
check_deprecated_kconfig_options:
|
|
|
|
extends: .check_job_template_with_filter
|
|
|
|
script:
|
|
|
|
- ${IDF_PATH}/tools/ci/check_deprecated_kconfigs.py
|
|
|
|
|
|
|
|
check_cmake_style:
|
|
|
|
extends: .check_job_template
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
script:
|
|
|
|
tools/cmake/run_cmake_lint.sh
|
|
|
|
|
2019-12-11 03:40:20 +00:00
|
|
|
check_wifi_lib_md5:
|
|
|
|
stage: pre_check
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "components/esp_wifi/lib"
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- IDF_TARGET=esp32 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
|
2020-01-17 03:47:08 +00:00
|
|
|
- IDF_TARGET=esp32s2 $IDF_PATH/components/esp_wifi/test_md5/test_md5.sh
|
2019-12-11 03:40:20 +00:00
|
|
|
|
2019-11-12 07:59:11 +00:00
|
|
|
.build_with_make_and_cmake: &build_with_make_and_cmake |
|
|
|
|
echo -e "section_end:"`date +%s`":build_script\r\e[0Ksection_start:"`date +%s`":build_make\r\e[0KBuild with Make"
|
|
|
|
make defconfig
|
|
|
|
make all
|
|
|
|
make clean
|
|
|
|
echo -e "section_end:"`date +%s`":build_make\r\e[0Ksection_start:"`date +%s`":build_cmake\r\e[0KBuild with CMake"
|
|
|
|
rm -rf build sdkconfig
|
|
|
|
idf.py build
|
|
|
|
echo -e "section_end:"`date +%s`":build_cmake\r\e[0Ksection_start:"`date +%s`":build_script\r\e[0K"
|
|
|
|
|
|
|
|
build_template_app:
|
|
|
|
stage: pre_check
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
variables:
|
|
|
|
BATCH_BUILD: "1"
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
script:
|
|
|
|
# Set the variable for 'esp-idf-template' testing
|
|
|
|
- ESP_IDF_TEMPLATE_GIT=${ESP_IDF_TEMPLATE_GIT:-"https://github.com/espressif/esp-idf-template.git"}
|
|
|
|
- git clone ${ESP_IDF_TEMPLATE_GIT}
|
|
|
|
# Try to use the same branch name for esp-idf-template that we're
|
|
|
|
# using on esp-idf. If it doesn't exist then just stick to the default branch
|
|
|
|
- python $CHECKOUT_REF_SCRIPT esp-idf-template esp-idf-template
|
|
|
|
- cd esp-idf-template
|
|
|
|
- export PATH="$IDF_PATH/tools:$PATH"
|
|
|
|
- export EXTRA_CFLAGS=${PEDANTIC_CFLAGS}
|
|
|
|
- export EXTRA_CXXFLAGS=${PEDANTIC_CXXFLAGS}
|
|
|
|
|
|
|
|
# CONFIG_COMPILER_OPTIMIZATION_DEFAULT with flag -Og
|
|
|
|
- echo "CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y" > sdkconfig.defaults
|
2020-03-09 00:55:22 +00:00
|
|
|
- echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG=y" >> sdkconfig.defaults
|
2019-11-12 07:59:11 +00:00
|
|
|
- *build_with_make_and_cmake
|
|
|
|
|
|
|
|
# CONFIG_COMPILER_OPTIMIZATION_NONE with flag -O0
|
|
|
|
- echo "CONFIG_COMPILER_OPTIMIZATION_NONE=y" > sdkconfig.defaults
|
2020-03-09 00:55:22 +00:00
|
|
|
- echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE=y" >> sdkconfig.defaults
|
2019-11-12 07:59:11 +00:00
|
|
|
- *build_with_make_and_cmake
|
|
|
|
|
|
|
|
# CONFIG_COMPILER_OPTIMIZATION_SIZE with flag -Os
|
|
|
|
- echo "CONFIG_COMPILER_OPTIMIZATION_SIZE=y" > sdkconfig.defaults
|
2020-03-09 00:55:22 +00:00
|
|
|
- echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y" >> sdkconfig.defaults
|
2019-11-12 07:59:11 +00:00
|
|
|
- *build_with_make_and_cmake
|
|
|
|
|
|
|
|
# CONFIG_COMPILER_OPTIMIZATION_PERF with flag -O2
|
|
|
|
- echo "CONFIG_COMPILER_OPTIMIZATION_PERF=y" > sdkconfig.defaults
|
2020-03-09 00:55:22 +00:00
|
|
|
- echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF=y" >> sdkconfig.defaults
|
2019-11-12 07:59:11 +00:00
|
|
|
- *build_with_make_and_cmake
|
|
|
|
|
|
|
|
# Same as above, but also disable assertions.
|
|
|
|
- echo "CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y" >> sdkconfig.defaults
|
|
|
|
# Don't error out on -Wunused, when assertions are disabled
|
|
|
|
- export EXTRA_CFLAGS=${PEDANTIC_CFLAGS/-Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function/}
|
|
|
|
- export EXTRA_CXXFLAGS=${PEDANTIC_CXXFLAGS/-Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function/}
|
|
|
|
- *build_with_make_and_cmake
|
|
|
|
- export EXTRA_CFLAGS=${PEDANTIC_CFLAGS}
|
|
|
|
- export EXTRA_CXXFLAGS=${PEDANTIC_CXXFLAGS}
|
|
|
|
|
|
|
|
# Check if there are any stray printf/ets_printf references in WiFi libs
|
|
|
|
- pushd ../components/esp_wifi/lib
|
2020-01-17 03:47:08 +00:00
|
|
|
- for dir in esp32 esp32s2; do test $(xtensa-esp32-elf-nm $dir/*.a | grep -w printf | wc -l) -eq 0; done;
|
|
|
|
- for dir in esp32 esp32s2; do test $(xtensa-esp32-elf-nm $dir/*.a | grep -w ets_printf | wc -l) -eq 0; done;
|
2019-11-12 07:59:11 +00:00
|
|
|
- popd
|
2019-12-18 15:11:11 +00:00
|
|
|
|
2019-12-25 20:03:41 +00:00
|
|
|
check_public_headers:
|
2019-12-18 15:11:11 +00:00
|
|
|
stage: pre_check
|
|
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
variables:
|
|
|
|
BATCH_BUILD: "1"
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_BUILD
|
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
|
|
|
script:
|
2020-03-02 09:19:01 +00:00
|
|
|
- python tools/ci/check_public_headers.py --jobs 4 --prefix xtensa-esp32-elf-
|
2019-12-18 15:11:11 +00:00
|
|
|
|
2020-04-20 06:30:31 +00:00
|
|
|
.scan_build_tests:
|
|
|
|
stage: pre_check
|
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- assign_test
|
|
|
|
variables:
|
|
|
|
CI_SCAN_TESTS_PY: ${CI_PROJECT_DIR}/tools/ci/python_packages/ttfw_idf/CIScanTests.py
|
|
|
|
TEST_CONFIG_FILE: ${CI_PROJECT_DIR}/tools/ci/config/target-test.yml
|
|
|
|
|
|
|
|
scan_tests:
|
|
|
|
extends: .scan_build_tests
|
|
|
|
only:
|
|
|
|
variables:
|
2020-06-28 05:56:04 +00:00
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
2020-07-07 08:25:57 +00:00
|
|
|
- $BOT_LABEL_REGULAR_TEST
|
2020-04-20 06:30:31 +00:00
|
|
|
- $BOT_LABEL_EXAMPLE_TEST
|
|
|
|
- $BOT_LABEL_CUSTOM_TEST
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $EXAMPLE_TEST_OUTPUT_DIR
|
|
|
|
- $TEST_APPS_OUTPUT_DIR
|
|
|
|
variables:
|
|
|
|
EXAMPLE_TEST_DIR: ${CI_PROJECT_DIR}/examples
|
|
|
|
EXAMPLE_TEST_OUTPUT_DIR: ${CI_PROJECT_DIR}/examples/test_configs
|
|
|
|
TEST_APPS_TEST_DIR: ${CI_PROJECT_DIR}/tools/test_apps
|
|
|
|
TEST_APPS_OUTPUT_DIR: ${CI_PROJECT_DIR}/tools/test_apps/test_configs
|
|
|
|
script:
|
2020-06-28 05:56:04 +00:00
|
|
|
- python $CI_SCAN_TESTS_PY example_test -b make $EXAMPLE_TEST_DIR --exclude examples/build_system/idf_as_lib -c $TEST_CONFIG_FILE -o $EXAMPLE_TEST_OUTPUT_DIR
|
|
|
|
- python $CI_SCAN_TESTS_PY example_test -b cmake $EXAMPLE_TEST_DIR --exclude examples/build_system/idf_as_lib -c $TEST_CONFIG_FILE -o $EXAMPLE_TEST_OUTPUT_DIR
|
2020-04-20 06:30:31 +00:00
|
|
|
- python $CI_SCAN_TESTS_PY test_apps $TEST_APPS_TEST_DIR -c $TEST_CONFIG_FILE -o $TEST_APPS_OUTPUT_DIR
|
2020-06-16 11:00:27 +00:00
|
|
|
|
|
|
|
check_readme_links:
|
|
|
|
extends: .check_job_template
|
|
|
|
tags: [ "amd64", "deploy", "internet" ]
|
|
|
|
allow_failure: true
|
|
|
|
variables:
|
|
|
|
PYTHON_VER: 3
|
|
|
|
script:
|
|
|
|
- python ${IDF_PATH}/tools/ci/check_readme_links.py
|