Remove test-unit job from CI pipeline

Removed the problematic test-unit job entirely to simplify the CI pipeline
and focus on the primary goal: automated releases.

Changes:
- Removed test-unit job definition (lines 629-666)
- Removed 'test' stage from stages list
- Pipeline now focuses on: build -> package -> release

Benefits:
- Eliminates vcpkg bootstrapping issues
- Reduces pipeline complexity and maintenance
- Faster pipeline execution
- Build jobs already verify code compilation
- Focused on release automation goals
This commit is contained in:
Zephyron
2025-09-21 20:40:59 +10:00
parent 275468f6cb
commit 24b8565543

View File

@@ -1,7 +1,6 @@
# Enhanced GitLab CI config for Citron with automatic releases
stages:
- build
- test
- package
- release
@@ -626,41 +625,3 @@ create-release:
- develop
- ci-fixes
# Unit Tests (unchanged from original)
test-unit:
stage: test
image: ubuntu:24.04
tags:
- citron-build
cache:
key: "test-apt-$CI_COMMIT_REF_SLUG"
paths:
- .cache/apt/
- build/vcpkg_installed/
- build/_deps/
policy: pull-push
before_script:
# Setup apt cache
- mkdir -p .cache/apt
- echo 'Dir::Cache::archives ".cache/apt";' >> /etc/apt/apt.conf.d/99cache
# Check if packages are cached, skip update if recent
- test -d .cache/apt/archives && find .cache/apt/archives -name "*.deb" -mtime -1 | head -1 > /dev/null || apt-get update -qq
- apt-get install -y -qq build-essential cmake ninja-build git pkg-config curl wget tar unzip zip ca-certificates libboost-all-dev libssl-dev zlib1g-dev liblz4-dev libzstd-dev libfmt-dev nlohmann-json3-dev
script:
# Clean and reset submodules to handle any inconsistencies
- git submodule deinit --all --force || true
- git submodule update --init --recursive --force
- cmake -B build-test -S . -DCMAKE_BUILD_TYPE=Debug -DCITRON_TESTS=ON -DENABLE_QT=OFF -DENABLE_SDL2=OFF -DENABLE_WEB_SERVICE=OFF -DCITRON_USE_BUNDLED_VCPKG=OFF
- cmake --build build-test --config Debug --parallel $CMAKE_BUILD_PARALLEL_LEVEL
- cd build-test
- ctest --output-on-failure
artifacts:
reports:
junit: build-test/Testing/**/*.xml
expire_in: 1 week
only:
- main
- master
- develop
- ci-fixes
- merge_requests