mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
ci: Allow bot to control branch used for esp-idf-template
This commit is contained in:
committed by
Angus Gratton
parent
6f31674b28
commit
526496ba20
@@ -43,7 +43,11 @@ 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..."
|
if [ -z $CHECKOUT_REF_SCRIPT ]; then
|
||||||
|
git checkout ${CI_BUILD_REF_NAME} || echo "Using esp-idf-template default branch..."
|
||||||
|
else
|
||||||
|
$CHECKOUT_REF_SCRIPT esp-idf-template
|
||||||
|
fi
|
||||||
|
|
||||||
print_status "Updating template config..."
|
print_status "Updating template config..."
|
||||||
make defconfig || exit $?
|
make defconfig || exit $?
|
||||||
|
@@ -45,7 +45,11 @@ 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..."
|
if [ -z $CHECKOUT_REF_SCRIPT ]; then
|
||||||
|
git checkout ${CI_BUILD_REF_NAME} || echo "Using esp-idf-template default branch..."
|
||||||
|
else
|
||||||
|
$CHECKOUT_REF_SCRIPT esp-idf-template
|
||||||
|
fi
|
||||||
|
|
||||||
print_status "Try to clean fresh directory..."
|
print_status "Try to clean fresh directory..."
|
||||||
idf.py fullclean || exit $?
|
idf.py fullclean || exit $?
|
||||||
|
Reference in New Issue
Block a user