mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
f150e2321a
Remaining commits from 2.1.3-esp but missing in 2.2.0-esp 2.1.3-esp: 2f700738 dhcp: Remove invalid warning in dhcp-state related logs - not needed as we're logging dhcp state changes inside dhcp_set_state() 2.1.3-esp:0866f578ci: Introduce lwip test apps - already present in the initial CI commit (f49974d8) 2.1.3-esp:ec115c72ci: Publish branch 2.1.3-esp if CI passes - already present in the initial CI commit (f49974d8) 2.1.3-esp:8a5a30ddPPP: Add test exhibiting empty packet null-deref - upstreamed as6b734bbb2.1.3-esp:b5934a2cPPP: Fix null-deref when processing wrong packet - upstreamed asa96643952.1.3-esp:c35e4d32ppp: Fix potential array overflow - upstreamed as2ee3cbe692.1.3-esp:f978e87fdhcp: Add hook for appending extra client's request options - upstreamed as3aa827452.1.3-esp:729d724cdhcp: Set hostname for DISCOVER packets - upstreamed as90b2a6b42.1.3-esp:73a92e31dhcp: Enable custom config for timeouts, thresholds, delays - upstreamed as00f5e179and5231c8da2.1.3-esp:72105e53tcp: Make retransmission timeout (RTO) configurable - upstreamed as239918cc2.1.3-esp:5f246f5fci: Add unit test suite to validate tcp state transitions - upstreamed asf50c87da2.1.3-esp:4a2fb780ci: Add github/lab build/run unit tests on linux - already present in the initial CI commit (f49974d8) 2.1.3-esp:08f1b41dci: Update esp-lwip's version to 2.1.3-esp - not needed
77 lines
1.8 KiB
YAML
77 lines
1.8 KiB
YAML
stages:
|
|
- host_test
|
|
- deploy
|
|
|
|
image: ${CI_DOCKER_REGISTRY}/esp-env-v5.0:2
|
|
|
|
variables:
|
|
CMAKE_SH: cmake-3.22.3-linux-x86_64.sh
|
|
CC: cc
|
|
|
|
before_script:
|
|
# Use CI Tools
|
|
- curl -sSL ${CIT_LOADER_URL} | sh
|
|
- source citools/import_functions
|
|
|
|
.get_cmake: &get_cmake |
|
|
wget -q https://github.com/Kitware/CMake/releases/download/v3.22.3/${CMAKE_SH}
|
|
mkdir -p /opt/cmake && sh ${CMAKE_SH} --prefix=/opt/cmake --skip-license
|
|
export PATH=/opt/cmake/bin:$PATH
|
|
|
|
run_unittests:
|
|
stage: host_test
|
|
tags:
|
|
- host_test
|
|
dependencies: []
|
|
script:
|
|
- ./test/ci/unit_tests.sh
|
|
|
|
build_all:
|
|
stage: host_test
|
|
tags:
|
|
- host_test
|
|
script:
|
|
- cp contrib/examples/example_app/lwipcfg.h.ci contrib/examples/example_app/lwipcfg.h
|
|
- mkdir build && cd build && cmake .. -G Ninja
|
|
- cmake --build .
|
|
- cmake --build . --target lwipdocs
|
|
|
|
validate_opts:
|
|
stage: host_test
|
|
tags:
|
|
- host_test
|
|
script:
|
|
- ./test/ci/validate_opts.sh
|
|
|
|
run_test_apps:
|
|
stage: host_test
|
|
tags:
|
|
- host_test
|
|
script:
|
|
- *get_cmake
|
|
- ./test/ci/test_apps.sh
|
|
|
|
.add_gh_key_remote: &add_gh_key_remote |
|
|
command -v ssh-agent >/dev/null || exit 1
|
|
eval $(ssh-agent -s)
|
|
printf '%s\n' "${GH_PUSH_KEY}" | tr -d '\r' | ssh-add - > /dev/null
|
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
|
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config || ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
|
git remote remove github || true
|
|
git remote add github ${GH_PUSH_REPO}
|
|
|
|
push_master_to_github:
|
|
stage: deploy
|
|
only:
|
|
- 2.1.2-esp
|
|
- 2.1.3-esp
|
|
- 2.2.0-esp
|
|
when: on_success
|
|
variables:
|
|
GIT_STRATEGY: clone
|
|
script:
|
|
- *add_gh_key_remote
|
|
- "[ -n \"${CI_COMMIT_TAG:-}\" ] && git push github ${CI_COMMIT_TAG}"
|
|
- "[ -z \"${CI_COMMIT_TAG:-}\" ] && git push github ${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}"
|
|
|