ci: Allow bot to control branch used for esp-idf-template

pull/1946/head
Angus Gratton 2018-05-08 14:42:54 +08:00 zatwierdzone przez Angus Gratton
rodzic 6f31674b28
commit 526496ba20
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -43,7 +43,11 @@ function run_tests()
print_status "Cloning template from ${ESP_IDF_TEMPLATE_GIT}..."
git clone ${ESP_IDF_TEMPLATE_GIT} 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..."
make defconfig || exit $?

Wyświetl plik

@ -45,7 +45,11 @@ function run_tests()
print_status "Cloning template from ${ESP_IDF_TEMPLATE_GIT}..."
git clone ${ESP_IDF_TEMPLATE_GIT} 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..."
idf.py fullclean || exit $?