]> granicus.if.org Git - esp-idf/commitdiff
CI: Build the esp-idf-template with the matching branch name, if it exists
authorAngus Gratton <angus@espressif.com>
Thu, 1 Sep 2016 08:58:06 +0000 (18:58 +1000)
committerAngus Gratton <angus@espressif.com>
Thu, 8 Sep 2016 03:41:19 +0000 (13:41 +1000)
.gitlab-ci.yml
make/test_build_system.sh

index 225b48f9486167270e71eb75bceb617370275736..15a1db2fc02eea99dc918b1c3fbe7d193759ca3b 100644 (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
 
index 015328bbbc4ea3f6d0d2373070d80bb54511fa8d..cb42356f05267f70ffb30de85198ae35f14dca9c 100755 (executable)
@@ -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 $?