|
|
@@ -112,7 +112,7 @@ cache:
|
|
|
|
|
|
.download_test_python_contraint_file: &download_test_python_contraint_file |
|
|
|
if [[ -n "$CI_PYTHON_CONSTRAINT_BRANCH" ]]; then
|
|
|
- wget -O /tmp/constraint.txt --header="Authorization:Bearer ${ESPCI_TOKEN}" https://gitlab.espressif.cn:6688/api/v4/projects/2581/repository/files/${CI_PYTHON_CONSTRAINT_FILE}/raw?ref=${CI_PYTHON_CONSTRAINT_BRANCH}
|
|
|
+ wget -O /tmp/constraint.txt --header="Authorization:Bearer ${ESPCI_TOKEN}" ${GITLAB_HTTP_SERVER}/api/v4/projects/2581/repository/files/${CI_PYTHON_CONSTRAINT_FILE}/raw?ref=${CI_PYTHON_CONSTRAINT_BRANCH}
|
|
|
mkdir -p ~/.espressif
|
|
|
mv /tmp/constraint.txt ~/.espressif/${CI_PYTHON_CONSTRAINT_FILE}
|
|
|
fi
|
|
|
@@ -147,6 +147,21 @@ before_script:
|
|
|
- source tools/ci/utils.sh
|
|
|
- is_based_on_commits $REQUIRED_ANCESTOR_COMMITS
|
|
|
|
|
|
+.before_script_integration_test:
|
|
|
+ before_script:
|
|
|
+ # need to install esptool, needn't install idf python env
|
|
|
+ - source tools/ci/utils.sh
|
|
|
+ - is_based_on_commits $REQUIRED_ANCESTOR_COMMITS
|
|
|
+ - source tools/ci/setup_python.sh
|
|
|
+ - add_gitlab_ssh_keys
|
|
|
+ - fetch_submodules
|
|
|
+ # download the constraint file manually
|
|
|
+ - mkdir -p ~/.espressif
|
|
|
+ - wget -O ~/.espressif/${CI_PYTHON_CONSTRAINT_FILE} --header="Authorization:Bearer ${ESPCI_TOKEN}" ${GITLAB_HTTP_SERVER}/api/v4/projects/2581/repository/files/${CI_PYTHON_CONSTRAINT_FILE}/raw
|
|
|
+ - *download_test_python_contraint_file
|
|
|
+ # TODO: remove this, IDFCI-1207
|
|
|
+ - pip install esptool -c ~/.espressif/${CI_PYTHON_CONSTRAINT_FILE}
|
|
|
+
|
|
|
.before_script_macos:
|
|
|
before_script:
|
|
|
- source tools/ci/utils.sh
|