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
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 $?