File tree Expand file tree Collapse file tree 14 files changed +133
-20
lines changed Expand file tree Collapse file tree 14 files changed +133
-20
lines changed Original file line number Diff line number Diff line change 1+ [tool .commitizen ]
2+ version = " 0.1.1"
3+ name = " cz_conventional_commits"
4+ version_files = [
5+ " apps/iperf/main/idf_component.yml" ,
6+ " iperf/idf_component.yml" ,
7+ " iperf/CHANGELOG.md" ,
8+ " iperf/README.md" ,
9+ " iperf-cmd/idf_component.yml" ,
10+ " iperf-cmd/CHANGELOG.md" ,
11+ " iperf-cmd/README.md" ,
12+ ]
13+ tag_format = " v$major.$minor.$patch"
14+ version_scheme = " semver"
15+ bump_message = " bump: development version $current_version → $new_version"
16+ update_changelog_on_bump = false
17+ pre_bump_hooks = [
18+ " tools/pre_bump_hook.sh"
19+ ]
Original file line number Diff line number Diff line change 1+ name : Publish iperf/iperf-cmd to IDF Component Registry
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ jobs :
9+ upload_components :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-python@v5
14+
15+ - name : check components version same with tag
16+ run : |
17+ pip install -r tools/requirements.txt
18+ python tools/check_version.py --version ${{ github.ref_name }}
19+
20+ - name : Upload iperf to IDF Component Registry
21+ uses : espressif/upload-components-ci-action@v1
22+ with :
23+ name : " iperf"
24+ directories : " iperf"
25+ version : ${{ github.ref_name }}
26+ namespace : " espressif"
27+ api_token : ${{ secrets.IDF_COMPONENT_API_TOKEN }}
28+
29+ - name : Upload iperf_cmd to IDF Component Registry
30+ uses : espressif/upload-components-ci-action@v1
31+ with :
32+ name : " iperf-cmd"
33+ directories : " iperf-cmd"
34+ version : ${{ github.ref_name }}
35+ namespace : " espressif"
36+ api_token : ${{ secrets.IDF_COMPONENT_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -71,3 +71,37 @@ build_iperf_v43:
7171 tags :
7272 - build
7373 - internet
74+
75+ publish_components :
76+ stage : publish
77+ image : ${GITLAB_DOCKER_REGISTRY}/qa/dockerfiles/qa-python-env:2
78+ rules :
79+ - if : ' $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/'
80+ needs :
81+ - job : build_iperf
82+ artifacts : false
83+ - job : build_iperf_v43
84+ artifacts : false
85+ before_script :
86+ - pip3 install Commitizen
87+ - cz version -v
88+ - git config user.name "${GITLAB_USER_LOGIN}"
89+ - git config user.email "${GITLAB_USER_EMAIL}"
90+ script :
91+ - python tools/check_version.py --version ${CI_COMMIT_TAG}
92+ # push to github and publish components
93+ - gitlab project-protected-tag create --name ${CI_COMMIT_TAG} --project-id=${CI_PROJECT_ID} --private-token ${GITLAB_PRIVATE_TOKEN}
94+ # bump new version: default PATCH
95+ - git branch -D bump/new_patch_version || true
96+ - git checkout -b bump/new_patch_version
97+ - cz bump --increment=PATCH
98+ # Do not add tag for new version
99+ - git tag --delete v$(cz version --project) || true
100+ - |
101+ git push -f \
102+ -o merge_request.create \
103+ -o merge_request.title="bump: ${CI_COMMIT_TAG} -> next patch version" \
104+ -o merge_request.assign="${GITLAB_USER_LOGIN}" \
105+ origin bump/new_patch_version
106+ tags :
107+ - host_test
Original file line number Diff line number Diff line change 2525 hooks :
2626 - id : pylint # Runs pylint on Python code
2727 additional_dependencies : ['PyYAML']
28+ args : ['--max-line-length=120']
2829
2930 - repo : https://github.com/astral-sh/ruff-pre-commit
3031 rev : v0.2.1
Original file line number Diff line number Diff line change 11# # IDF Component Manager Manifest File
22dependencies :
33 espressif/iperf :
4- version : " 0.0.1 "
5- override_path : " ../../../iperf"
4+ version : =0.1.1
5+ override_path : ../../../iperf
66 espressif/iperf-cmd :
7- version : " 0.0.1 "
8- override_path : " ../../../iperf-cmd"
7+ version : =0.1.1
8+ override_path : ../../../iperf-cmd
Original file line number Diff line number Diff line change 11# Changelog
22
3- ## [ 0.0 .1] ( https://github.com/espressif/iperf-cmd/commits/v0.0 .1 )
3+ ## [ 0.1 .1] ( https://github.com/espressif/iperf-cmd/commits/v0.1 .1 )
44
55### Features
66
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ This repository contains `iperf` command based esp-idf console.
3131 ``` yaml
3232 dependencies :
3333 espressif/iperf_cmd :
34- version : " ^0.0 .1"
34+ version : " ^0.1 .1"
3535 ` ` `
3636- For more details refer [IDF Component Manager](https://docs.espressif.com/projects/idf-component-manager/en/latest/)
Original file line number Diff line number Diff line change 1- version : " 0.0.1 "
1+ version : 0.1.1
22description : Iperf command based on esp-idf console
33url : https://github.com/espressif/iperf-cmd/tree/master/iperf-cmd
44repository : https://github.com/espressif/iperf-cmd.git
55documentation : https://iperf.fr/iperf-doc.php
66issues : https://github.com/espressif/iperf-cmd/issues
77license : Apache-2.0
88dependencies :
9- idf : " >=4.3"
9+ idf : ' >=4.3'
1010 espressif/iperf :
11- version : " 0.0.1 "
11+ version : =0.1.1
1212examples :
1313 - path : ../apps/iperf/
1414files :
1515 exclude :
16- - " doxygen/**/*"
17- - " doxygen"
16+ - doxygen/**/*
17+ - doxygen
Original file line number Diff line number Diff line change 11# Changelog
22
3- ## [ 0.0 .1] ( https://github.com/espressif/iperf-cmd/commits/v0.0 .1 )
3+ ## [ 0.1 .1] ( https://github.com/espressif/iperf-cmd/commits/v0.1 .1 )
44
55### Features
66
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ This repository contains a basic iperf core engine.
1616 ``` yaml
1717 dependencies :
1818 espressif/iperf :
19- version : " ^0.0 .1"
19+ version : " ^0.1 .1"
2020 ` ` `
2121- For more details refer [IDF Component Manager](https://docs.espressif.com/projects/idf-component-manager/en/latest/)
You can’t perform that action at this time.
0 commit comments