From 18dbdd46f442e415944310934fe69ca0a4d1f479 Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Thu, 24 Aug 2017 11:38:52 +0800 Subject: [PATCH] CI: checkout relative branch of test_script test script interface could change. we need to use the correct version of test script to run test on old release versions of IDF. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b640a99f02..f86bd4e0a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -337,6 +337,7 @@ check_doc_links: # clone test bench - git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git - cd auto_test_script + - git checkout ${CI_COMMIT_REF_NAME} || echo "Using default branch..." # run test - python CIRunner.py -l $LOG_PATH -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH -m $MODULE_UPDATE_FILE bin_path $APP_NAME $BIN_PATH @@ -364,6 +365,7 @@ check_doc_links: # clone test bench - git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git - cd auto_test_script + - git checkout ${CI_COMMIT_REF_NAME} || echo "Using default branch..." # run test - python CIRunner.py -l $LOG_PATH -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH -m $MODULE_UPDATE_FILE bin_path $APP_NAME $BIN_PATH @@ -380,7 +382,7 @@ check_doc_links: APP_NAME: "ut" TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test/unit_test" MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/tools/unit-test-app/ModuleDefinition.yml" - + dependencies: - build_esp_idf_tests