forked from espressif/esp-idf
CI: Build the esp-idf-template with the matching branch name, if it exists
This commit is contained in:
@@ -18,6 +18,10 @@ build_template_app:
|
|||||||
script:
|
script:
|
||||||
- git clone https://github.com/espressif/esp-idf-template.git
|
- git clone https://github.com/espressif/esp-idf-template.git
|
||||||
- cd esp-idf-template
|
- cd esp-idf-template
|
||||||
|
# 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
|
||||||
|
- git checkout ${CI_BUILD_REF_NAME} || echo "Using esp-idf-template default branch..."
|
||||||
- make defconfig
|
- make defconfig
|
||||||
- make all
|
- make all
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@ function run_tests()
|
|||||||
print_status "Cloning template from ${ESP_IDF_TEMPLATE_GIT}..."
|
print_status "Cloning template from ${ESP_IDF_TEMPLATE_GIT}..."
|
||||||
git clone ${ESP_IDF_TEMPLATE_GIT} template
|
git clone ${ESP_IDF_TEMPLATE_GIT} template
|
||||||
cd template
|
cd template
|
||||||
|
git checkout ${CI_BUILD_REF_NAME} || echo "Using esp-idf-template default branch..."
|
||||||
|
|
||||||
print_status "Updating template config..."
|
print_status "Updating template config..."
|
||||||
make defconfig || exit $?
|
make defconfig || exit $?
|
||||||
|
Reference in New Issue
Block a user