Skip to content

Commit b798ce4

Browse files
committed
Merge branch 'chore/modify_ci_env_setup' into 'master'
chore(ci): Modify CI env setup See merge request sdk/ESP8266_RTOS_SDK!1546
2 parents 98d201a + 1af36c5 commit b798ce4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.gitlab-ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ before_script:
2525
- *apply_bot_filter
2626
- echo "Not setting up GitLab key, fetching submodules ..."
2727
- git submodule update --init --recursive
28-
- ./install.sh
29-
- . ./export.sh
28+
- tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
3029
- source tools/ci/configure_ci_environment.sh
3130

3231
.build_template: &build_template
@@ -42,8 +41,7 @@ build_ssc:
4241
- ./SSC/ssc_bin
4342
expire_in: 6 mos
4443
script:
45-
- ./install.sh
46-
- . ./export.sh
44+
- tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
4745
- git clone $GITLAB_SSH_SERVER/yinling/SSC.git
4846
- cd SSC
4947
# try checkout same branch

tools/idf_tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def get_python_env_path():
796796
idf_version_str = version_file.read()
797797
else:
798798
idf_version_str = subprocess.check_output(['git', '-C', global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
799-
match = re.match(r'^v([0-9]+\.[0-9]+).*', idf_version_str)
799+
match = re.search(r'v([0-9]+\.[0-9]+).*', idf_version_str)
800800
idf_version = match.group(1)
801801

802802
idf_python_env_path = os.path.join(global_idf_tools_path, 'python_env',

0 commit comments

Comments
 (0)