2019-06-28 12:39:21 -04:00
.build_template :
stage : build
2021-05-26 04:44:20 -04:00
image : $ESP_ENV_IMAGE
2019-06-28 12:39:21 -04:00
tags :
- build
variables :
2020-07-21 04:00:05 -04:00
SIZE_INFO_LOCATION : "$CI_PROJECT_DIR/size_info.txt"
2021-11-05 10:26:13 -04:00
# Enable ccache for all build jobs. See configure_ci_environment.sh for more ccache related settings.
IDF_CCACHE_ENABLE : "1"
after_script :
# Show ccache statistics if enabled globally
- test "$CI_CCACHE_STATS" == 1 && test -n "$(which ccache)" && ccache --show-stats || true
2020-11-19 02:08:53 -05:00
dependencies : [ ]
2019-06-28 12:39:21 -04:00
2021-11-19 03:11:47 -05:00
.build_pytest_template :
extends :
- .build_template
- .before_script_pytest
dependencies : # set dependencies to null to avoid missing artifacts issue
needs :
- job : fast_template_app
artifacts : false
variables :
2022-01-31 01:20:59 -05:00
PYTHON_VER : 3.7 .10
2021-11-19 03:11:47 -05:00
artifacts :
paths :
- "**/build*/size.json"
- "**/build*/build.log"
- "**/build*/*.bin"
- "**/build*/*.elf"
- "**/build*/*.map"
- "**/build*/flasher_args.json"
- "**/build*/config/sdkconfig.json"
- "**/build*/bootloader/*.bin"
- "**/build*/partition_table/*.bin"
- $SIZE_INFO_LOCATION
when : always
expire_in : 3 days
2022-01-18 03:37:27 -05:00
build_pytest_examples_esp32 :
2021-11-19 03:11:47 -05:00
extends :
- .build_pytest_template
- .rules:build:example_test-esp32
2022-05-25 06:51:35 -04:00
parallel : 2
2021-11-19 03:11:47 -05:00
script :
2022-05-25 06:51:35 -04:00
- run_cmd python tools/ci/build_pytest_apps.py examples --target esp32 --size-info $SIZE_INFO_LOCATION -vv --parallel-count $CI_NODE_TOTAL --parallel-index $CI_NODE_INDEX
2021-11-30 22:32:50 -05:00
2022-01-18 03:37:27 -05:00
build_pytest_examples_esp32s2 :
2021-11-30 22:32:50 -05:00
extends :
- .build_pytest_template
- .rules:build:example_test-esp32s2
2022-05-30 02:46:16 -04:00
parallel : 2
2021-11-30 22:32:50 -05:00
script :
2022-05-30 02:46:16 -04:00
- run_cmd python tools/ci/build_pytest_apps.py examples --target esp32s2 --size-info $SIZE_INFO_LOCATION -vv --parallel-count $CI_NODE_TOTAL --parallel-index $CI_NODE_INDEX
2021-11-19 03:11:47 -05:00
2022-01-18 23:12:15 -05:00
build_pytest_examples_esp32s3 :
extends :
- .build_pytest_template
- .rules:build:example_test-esp32s3
2022-05-30 02:46:16 -04:00
parallel : 2
2022-01-18 23:12:15 -05:00
script :
2022-05-30 02:46:16 -04:00
- run_cmd python tools/ci/build_pytest_apps.py examples --target esp32s3 --size-info $SIZE_INFO_LOCATION -vv --parallel-count $CI_NODE_TOTAL --parallel-index $CI_NODE_INDEX
2022-01-18 23:12:15 -05:00
2022-05-19 14:42:46 -04:00
build_pytest_examples_esp32c2 :
2021-11-19 03:11:47 -05:00
extends :
- .build_pytest_template
2022-05-19 14:42:46 -04:00
- .rules:build:example_test-esp32c2
2021-11-19 03:11:47 -05:00
script :
2022-05-19 14:42:46 -04:00
- run_cmd python tools/ci/build_pytest_apps.py examples --target esp32c2 --size-info $SIZE_INFO_LOCATION -vv
2021-11-19 03:11:47 -05:00
2022-05-19 14:42:46 -04:00
build_pytest_examples_esp32c3 :
2022-05-07 03:26:45 -04:00
extends :
- .build_pytest_template
2022-05-19 14:42:46 -04:00
- .rules:build:example_test-esp32c3
2022-05-30 02:46:16 -04:00
parallel : 2
2022-05-07 03:26:45 -04:00
script :
2022-05-30 02:46:16 -04:00
- run_cmd python tools/ci/build_pytest_apps.py examples --target esp32c3 --size-info $SIZE_INFO_LOCATION -vv --parallel-count $CI_NODE_TOTAL --parallel-index $CI_NODE_INDEX
2022-05-07 03:26:45 -04:00
2022-01-18 23:12:15 -05:00
build_pytest_components_esp32 :
extends :
- .build_pytest_template
- .rules:build:component_ut-esp32
script :
2022-01-28 02:21:12 -05:00
- run_cmd python tools/ci/build_pytest_apps.py components --target esp32 --size-info $SIZE_INFO_LOCATION -vv
2022-01-18 23:12:15 -05:00
build_pytest_components_esp32s2 :
extends :
- .build_pytest_template
- .rules:build:component_ut-esp32s2
script :
2022-01-28 02:21:12 -05:00
- run_cmd python tools/ci/build_pytest_apps.py components --target esp32s2 --size-info $SIZE_INFO_LOCATION -vv
2022-01-18 23:12:15 -05:00
build_pytest_components_esp32s3 :
extends :
- .build_pytest_template
- .rules:build:component_ut-esp32s3
script :
2022-01-28 02:21:12 -05:00
- run_cmd python tools/ci/build_pytest_apps.py components --target esp32s3 --size-info $SIZE_INFO_LOCATION -vv
2022-01-18 23:12:15 -05:00
build_pytest_components_esp32c3 :
extends :
- .build_pytest_template
- .rules:build:component_ut-esp32c3
script :
2022-01-28 02:21:12 -05:00
- run_cmd python tools/ci/build_pytest_apps.py components --target esp32c3 --size-info $SIZE_INFO_LOCATION -vv
2022-01-18 23:12:15 -05:00
2022-05-07 03:26:45 -04:00
build_pytest_components_esp32c2 :
extends :
- .build_pytest_template
- .rules:build:component_ut-esp32c2
script :
- run_cmd python tools/ci/build_pytest_apps.py components --target esp32c2 --size-info $SIZE_INFO_LOCATION -vv
2022-03-07 22:36:57 -05:00
build_non_test_components_apps :
extends :
- .build_template
- .build_test_apps_template
- .rules:build:component_ut
variables :
IDF_TARGET : all
TEST_PREFIX : component_ut
TEST_RELATIVE_DIR : component_ut
2022-02-11 02:47:32 -05:00
build_pytest_test_apps_esp32 :
extends :
- .build_pytest_template
- .rules:build:custom_test-esp32
script :
- run_cmd python tools/ci/build_pytest_apps.py tools/test_apps --target esp32 --size-info $SIZE_INFO_LOCATION -vv
build_pytest_test_apps_esp32s2 :
extends :
- .build_pytest_template
- .rules:build:custom_test-esp32s2
script :
- run_cmd python tools/ci/build_pytest_apps.py tools/test_apps --target esp32s2 --size-info $SIZE_INFO_LOCATION -vv
2022-03-07 22:36:57 -05:00
build_pytest_test_apps_esp32s3 :
2022-01-28 23:09:04 -05:00
extends :
2022-03-07 22:36:57 -05:00
- .build_pytest_template
- .rules:build:custom_test-esp32s3
script :
- run_cmd python tools/ci/build_pytest_apps.py tools/test_apps --target esp32s3 --size-info $SIZE_INFO_LOCATION -vv
2022-05-19 14:42:46 -04:00
build_pytest_test_apps_esp32c2 :
extends :
- .build_pytest_template
- .rules:build:custom_test-esp32c2
script :
- run_cmd python tools/ci/build_pytest_apps.py tools/test_apps --target esp32c2 --size-info $SIZE_INFO_LOCATION -vv
2022-03-07 22:36:57 -05:00
build_pytest_test_apps_esp32c3 :
extends :
- .build_pytest_template
- .rules:build:custom_test-esp32c3
script :
- run_cmd python tools/ci/build_pytest_apps.py tools/test_apps --target esp32c3 --size-info $SIZE_INFO_LOCATION -vv
2022-01-28 23:09:04 -05:00
2020-09-26 23:20:53 -04:00
.build_template_app_template :
2021-02-08 23:31:38 -05:00
extends : .build_template
2020-09-26 23:20:53 -04:00
variables :
LOG_PATH : "${CI_PROJECT_DIR}/log_template_app"
BUILD_PATH : "${CI_PROJECT_DIR}/build_template_app"
BUILD_DIR : "@t/@w"
BUILD_LOG_CMAKE : "${LOG_PATH}/cmake_@t_@w.txt"
BUILD_COMMAND_ARGS : ""
artifacts :
when : always
paths :
- log_template_app/*
- size_info.txt
- build_template_app/**/size.json
2022-02-09 05:00:54 -05:00
expire_in : 1 week
2020-09-26 23:20:53 -04:00
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"}
2020-09-28 02:27:10 -04:00
- retry_failed git clone ${ESP_IDF_TEMPLATE_GIT}
2020-09-26 23:20:53 -04:00
# 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
- export PATH="$IDF_PATH/tools:$PATH"
- export EXTRA_CFLAGS=${PEDANTIC_CFLAGS}
- export EXTRA_CXXFLAGS=${PEDANTIC_CXXFLAGS}
# Only do the default cmake build for each target, remaining part are done in the build_template_app job
- tools/ci/build_template_app.sh ${BUILD_COMMAND_ARGS}
# build-related-pre-check-jobs ------------------------------------------------
# Build at least one project for each target at earliest stage to reduce build cost for obvious failing commits
fast_template_app :
2020-11-10 04:48:35 -05:00
extends :
- .build_template_app_template
2021-02-22 03:53:37 -05:00
- .rules:build:target_test
2020-09-26 23:20:53 -04:00
stage : pre_check
variables :
BUILD_COMMAND_ARGS : "-p"
#------------------------------------------------------------------------------
2019-12-19 21:52:33 -05:00
.build_ssc_template :
2020-09-26 23:20:53 -04:00
extends :
- .build_template
2021-02-08 23:31:38 -05:00
- .rules:build:integration_test
2019-06-28 12:39:21 -04:00
artifacts :
paths :
- SSC/ssc_bin
expire_in : 1 week
script :
2020-09-28 02:27:10 -04:00
- retry_failed 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
2020-09-26 23:20:53 -04:00
parallel : 3
2019-12-19 21:52:33 -05:00
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
2022-05-29 22:18:20 -04:00
build_ssc_esp32c2 :
extends : .build_ssc_template
parallel : 2
variables :
TARGET_NAME : "ESP32C2"
2021-01-14 06:59:02 -05:00
build_ssc_esp32c3 :
extends : .build_ssc_template
parallel : 3
variables :
TARGET_NAME : "ESP32C3"
2021-10-20 23:23:24 -04:00
build_ssc_esp32s3 :
extends : .build_ssc_template
parallel : 3
variables :
TARGET_NAME : "ESP32S3"
2021-02-08 23:31:38 -05:00
.build_esp_idf_tests_cmake_template :
extends : .build_template
2020-11-27 06:11:59 -05:00
dependencies : # set dependencies to null to avoid missing artifacts issue
2020-11-10 04:48:35 -05:00
needs :
- job : fast_template_app
artifacts : false
- scan_tests
2020-04-28 22:38:05 -04:00
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
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"
2022-01-31 01:20:59 -05:00
PYTHON_VER : 3.7 .10
2021-01-13 07:05:57 -05:00
LDGEN_CHECK_MAPPING : 1
2019-06-28 12:39:21 -04:00
script :
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
2021-03-15 02:17:43 -04:00
- python tools/UnitTestParser.py ${BUILD_PATH} ${CI_NODE_INDEX:-1}
2019-06-28 12:39:21 -04:00
2020-04-28 22:38:05 -04:00
build_esp_idf_tests_cmake_esp32 :
2021-02-08 23:31:38 -05:00
extends :
- .build_esp_idf_tests_cmake_template
- .rules:build:unit_test-esp32
2021-02-25 05:01:29 -05:00
parallel : 2
2020-04-28 22:38:05 -04:00
variables :
IDF_TARGET : esp32
build_esp_idf_tests_cmake_esp32s2 :
2021-02-08 23:31:38 -05:00
extends :
- .build_esp_idf_tests_cmake_template
- .rules:build:unit_test-esp32s2
2021-02-25 05:01:29 -05:00
parallel : 2
2020-04-28 22:38:05 -04:00
variables :
IDF_TARGET : esp32s2
2019-06-28 12:39:21 -04:00
2020-08-20 00:22:36 -04:00
build_esp_idf_tests_cmake_esp32s3 :
2021-02-08 23:31:38 -05:00
extends :
- .build_esp_idf_tests_cmake_template
- .rules:build:unit_test-esp32s3
2020-08-20 00:22:36 -04:00
variables :
IDF_TARGET : esp32s3
2022-05-19 14:42:46 -04:00
build_esp_idf_tests_cmake_esp32c2 :
2021-02-08 23:31:38 -05:00
extends :
- .build_esp_idf_tests_cmake_template
2022-05-19 14:42:46 -04:00
- .rules:build:unit_test-esp32c2
2020-12-30 03:10:37 -05:00
variables :
2022-05-19 14:42:46 -04:00
IDF_TARGET : esp32c2
2020-12-30 03:10:37 -05:00
2022-05-19 14:42:46 -04:00
build_esp_idf_tests_cmake_esp32c3 :
2021-11-26 04:03:47 -05:00
extends :
- .build_esp_idf_tests_cmake_template
2022-05-19 14:42:46 -04:00
- .rules:build:unit_test-esp32c3
2021-11-26 04:03:47 -05:00
variables :
2022-05-19 14:42:46 -04:00
IDF_TARGET : esp32c3
2021-11-26 04:03:47 -05:00
2020-04-22 02:49:05 -04:00
.build_examples_template :
2021-02-08 23:31:38 -05:00
extends : .build_template
2020-11-27 06:11:59 -05:00
dependencies : # set dependencies to null to avoid missing artifacts issue
2020-11-10 04:48:35 -05:00
needs :
- job : fast_template_app
artifacts : false
- scan_tests
2020-07-21 04:00:05 -04:00
variables :
2020-08-21 02:42:25 -04:00
TEST_PREFIX : examples
TEST_RELATIVE_DIR : examples
SCAN_TEST_JSON : ${CI_PROJECT_DIR}/${TEST_RELATIVE_DIR}/test_configs/scan_${IDF_TARGET}_${BUILD_SYSTEM}.json
TEST_TYPE : example_test
LOG_PATH : ${CI_PROJECT_DIR}/log_${TEST_PREFIX}
BUILD_PATH : ${CI_PROJECT_DIR}/build_${TEST_PREFIX}
2022-01-31 01:20:59 -05:00
PYTHON_VER : 3.7 .10
2021-01-13 07:05:57 -05:00
LDGEN_CHECK_MAPPING : 1
2019-06-28 12:39:21 -04:00
script :
# 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
2021-02-08 23:31:38 -05:00
.build_examples_cmake_template :
2020-04-22 02:49:05 -04:00
extends : .build_examples_template
2019-06-28 12:39:21 -04:00
artifacts :
paths :
2020-08-21 02:42:25 -04:00
- build_${TEST_PREFIX}/list.json
- build_${TEST_PREFIX}/list_job_*.json
- build_${TEST_PREFIX}/*/*/*/sdkconfig
- build_${TEST_PREFIX}/*/*/*/build/size.json
- build_${TEST_PREFIX}/*/*/*/build/*.bin
- build_${TEST_PREFIX}/*/*/*/build/*.elf
- build_${TEST_PREFIX}/*/*/*/build/*.map
- build_${TEST_PREFIX}/*/*/*/build/flasher_args.json
- build_${TEST_PREFIX}/*/*/*/build/bootloader/*.bin
- build_${TEST_PREFIX}/*/*/*/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
2020-11-18 04:26:33 -05:00
when : always
expire_in : 4 days
2019-06-28 12:39:21 -04:00
variables :
2020-08-21 02:42:25 -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 :
2021-02-08 23:31:38 -05:00
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32
2022-01-29 01:38:56 -05:00
parallel : 12
2019-06-27 07:11:15 -04:00
variables :
IDF_TARGET : esp32
2019-08-07 23:44:24 -04:00
build_examples_cmake_esp32s2 :
2021-02-08 23:31:38 -05:00
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32s2
2020-08-21 02:42:25 -04:00
parallel : 8
2019-08-07 23:44:24 -04:00
variables :
2020-01-16 22:47:08 -05:00
IDF_TARGET : esp32s2
2019-08-07 23:44:24 -04:00
2021-09-15 23:16:52 -04:00
build_examples_cmake_esp32s3 :
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32s3
parallel : 8
variables :
IDF_TARGET : esp32s3
2022-05-19 14:42:46 -04:00
build_examples_cmake_esp32c2 :
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32c2
parallel : 8
variables :
IDF_TARGET : esp32c2
2020-12-14 22:00:02 -05:00
build_examples_cmake_esp32c3 :
2021-02-08 23:31:38 -05:00
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32c3
2020-12-14 22:00:02 -05:00
parallel : 8
variables :
IDF_TARGET : esp32c3
2022-01-10 06:33:49 -05:00
build_examples_cmake_esp32h2 :
extends :
- .build_examples_cmake_template
- .rules:build:example_test-esp32h2
variables :
IDF_TARGET : esp32h2
2021-02-08 23:31:38 -05:00
.build_test_apps_template :
extends : .build_examples_cmake_template
2019-10-20 14:55:11 -04:00
variables :
2020-08-21 02:42:25 -04:00
TEST_PREFIX : test_apps
TEST_RELATIVE_DIR : tools/test_apps
2020-07-21 04:00:05 -04:00
TEST_TYPE : custom_test
2019-10-20 14:55:11 -04:00
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 :
2021-02-08 23:31:38 -05:00
extends :
- .build_test_apps_template
- .rules:build:custom_test-esp32
2022-01-29 01:38:56 -05:00
parallel : 2
2019-10-20 14:55:11 -04:00
variables :
IDF_TARGET : esp32
build_test_apps_esp32s2 :
2021-02-08 23:31:38 -05:00
extends :
- .build_test_apps_template
- .rules:build:custom_test-esp32s2
2022-01-29 01:38:56 -05:00
parallel : 2
2019-10-20 14:55:11 -04:00
variables :
2020-01-27 06:12:49 -05:00
IDF_TARGET : esp32s2
2019-10-20 14:55:11 -04:00
2020-10-20 06:08:15 -04:00
build_test_apps_esp32s3 :
2021-02-08 23:31:38 -05:00
extends :
- .build_test_apps_template
- .rules:build:custom_test-esp32s3
2022-01-29 01:38:56 -05:00
parallel : 2
2020-10-20 06:08:15 -04:00
variables :
IDF_TARGET : esp32s3
2020-12-30 03:10:37 -05:00
build_test_apps_esp32c3 :
2021-02-08 23:31:38 -05:00
extends :
- .build_test_apps_template
- .rules:build:custom_test-esp32c3
2022-01-29 01:38:56 -05:00
parallel : 2
2020-12-30 03:10:37 -05:00
variables :
IDF_TARGET : esp32c3
2022-01-17 21:32:56 -05:00
build_test_apps_esp32c2 :
2021-11-26 04:03:47 -05:00
extends :
- .build_test_apps_template
2022-01-17 21:32:56 -05:00
- .rules:build:custom_test-esp32c2
2021-11-26 04:03:47 -05:00
variables :
2022-01-17 21:32:56 -05:00
IDF_TARGET : esp32c2
2021-11-26 04:03:47 -05:00
2020-09-26 23:20:53 -04:00
.test_build_system_template :
2021-06-29 07:35:37 -04:00
stage : host_test
2020-09-26 23:20:53 -04:00
extends :
- .build_template
2021-02-08 23:31:38 -05:00
- .rules:build
2020-11-10 04:48:35 -05:00
needs :
- job : fast_template_app
artifacts : false
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
2020-09-26 23:20:53 -04:00
- ${IDF_PATH}/tools/ci/${SHELL_TEST_SCRIPT}
2019-06-28 12:39:21 -04:00
test_build_system_cmake :
2020-09-26 23:20:53 -04:00
extends : .test_build_system_template
variables :
SHELL_TEST_SCRIPT : 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 :
2020-09-26 23:20:53 -04:00
extends :
- .test_build_system_template
- .before_script_macos
2021-02-08 23:31:38 -05:00
- .rules:build:macos
2020-09-26 23:20:53 -04:00
tags :
- macos_shell
2020-10-28 22:42:37 -04:00
variables :
SHELL_TEST_SCRIPT : test_build_system_cmake.sh
2019-10-30 10:00:18 -04:00
2021-08-30 18:32:07 -04:00
test_build_system_spaces :
extends : .test_build_system_template
variables :
SHELL_TEST_SCRIPT : test_build_system_spaces.py
2019-07-08 12:42:46 -04:00
build_docker :
2020-09-26 23:20:53 -04:00
extends :
2021-02-08 23:31:38 -05:00
- .before_script_minimal
- .rules:build:docker
2021-06-29 07:35:37 -04:00
stage : host_test
2021-08-10 04:29:25 -04:00
needs : [ ]
2019-07-08 12:42:46 -04:00
image : espressif/docker-builder:1
tags :
- build_docker_amd64_brno
variables :
DOCKER_TMP_IMAGE_NAME : "idf_tmp_image"
script :
2020-09-11 10:14:15 -04:00
- export LOCAL_CI_REPOSITORY_URL=$CI_REPOSITORY_URL
- if [ -n "$LOCAL_GITLAB_HTTPS_HOST" ]; then export LOCAL_CI_REPOSITORY_URL="https://gitlab-ci-token:${CI_JOB_TOKEN}@${LOCAL_GITLAB_HTTPS_HOST}/${CI_PROJECT_PATH}"; fi
2021-11-24 04:20:11 -05:00
- if [ -n "$LOCAL_GIT_MIRROR" ]; then export LOCAL_CI_REPOSITORY_URL="${LOCAL_GIT_MIRROR}/${CI_PROJECT_PATH}"; fi
2020-09-11 10:14:15 -04:00
- echo "Using repository at $LOCAL_CI_REPOSITORY_URL"
2021-10-28 00:07:02 -04:00
- export DOCKER_BUILD_ARGS="--build-arg IDF_CLONE_URL=${LOCAL_CI_REPOSITORY_URL} --build-arg IDF_CLONE_BRANCH_OR_TAG=${CI_COMMIT_REF_NAME} --build-arg IDF_CHECKOUT_REF=${CI_COMMIT_TAG:-$PIPELINE_COMMIT_SHA}"
2019-07-08 12:42:46 -04:00
# 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
2020-07-15 12:18:33 -04:00
# This job builds template app with permutations of targets and optimization levels
build_template_app :
2021-02-08 23:31:38 -05:00
extends :
- .build_template_app_template
- .rules:build
2021-06-29 07:35:37 -04:00
stage : host_test
2020-11-10 04:48:35 -05:00
needs :
- job : fast_template_app
artifacts : false