CI: Build the esp-idf-template with the matching branch name, if it exists

This commit is contained in:
Angus Gratton 2016-09-01 18:58:06 +10:00
parent b9a853c903
commit 02543ee895
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,10 @@ build_template_app:
script:
- git clone https://github.com/espressif/esp-idf-template.git
- 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 all

View File

@ -29,6 +29,7 @@ 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..."
print_status "Updating template config..."
make defconfig || exit $?