Files
esp-lwip/.gitlab-ci.yml
T
David Cermak f150e2321a ci/docs: Update CHANGELOG and publish v2.2.0-esp
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: 0866f578 ci: Introduce lwip test apps
- already present in the initial CI commit (f49974d8)
2.1.3-esp: ec115c72 ci: Publish branch 2.1.3-esp if CI passes
- already present in the initial CI commit (f49974d8)
2.1.3-esp: 8a5a30dd PPP: Add test exhibiting empty packet null-deref
- upstreamed as 6b734bbb
2.1.3-esp: b5934a2c PPP: Fix null-deref when processing wrong packet
- upstreamed as a9664395
2.1.3-esp: c35e4d32 ppp: Fix potential array overflow
- upstreamed as 2ee3cbe69
2.1.3-esp: f978e87f dhcp: Add hook for appending extra client's request options
- upstreamed as 3aa82745
2.1.3-esp: 729d724c dhcp: Set hostname for DISCOVER packets
- upstreamed as 90b2a6b4
2.1.3-esp: 73a92e31 dhcp: Enable custom config for timeouts, thresholds, delays
- upstreamed as 00f5e179 and 5231c8da
2.1.3-esp: 72105e53 tcp: Make retransmission timeout (RTO) configurable
- upstreamed as 239918cc
2.1.3-esp: 5f246f5f ci: Add unit test suite to validate tcp state transitions
- upstreamed as f50c87da
2.1.3-esp: 4a2fb780 ci: Add github/lab build/run unit tests on linux
- already present in the initial CI commit (f49974d8)
2.1.3-esp: 08f1b41d ci: Update esp-lwip's version to 2.1.3-esp
- not needed
2024-09-11 16:37:26 +02:00

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}"