From 47b8cbc3aa17b1d40ec70a707932de4f5b1567bb Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 24 Sep 2025 07:27:59 +0330 Subject: [PATCH] wip: testing --- .drone.yml | 256 ++++++++++++++++--------------- tools/ci/amd64/gcc/unit_tests.sh | 2 - 2 files changed, 132 insertions(+), 126 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9abc962..97e1315 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,21 +1,21 @@ ---- -kind: pipeline -type: exec -name: amd64 — msvc -trigger: - branch: - - main -platform: - os: windows - arch: amd64 - -steps: -- name: unit tests - shell: powershell - commands: - - ./tools/ci/amd64/msvc/unit_tests.ps1 - ---- +# --- +# kind: pipeline +# type: exec +# name: amd64 — msvc +# trigger: +# branch: +# - main +# platform: +# os: windows +# arch: amd64 +# +# steps: +# - name: unit tests +# shell: powershell +# commands: +# - ./tools/ci/amd64/msvc/unit_tests.ps1 +# +# --- kind: pipeline type: docker name: amd64 — gcc @@ -28,112 +28,120 @@ steps: image: ci:latest pull: if-not-exists commands: + - env + - echo ${PATH} + - echo $${PATH} + - echo ${DISPLAY} + - echo $${DISPLAY} + - echo ${NVIDIA_VISIBLE_DEVICES} + - echo $${NVIDIA_VISIBLE_DEVICES} + - ./tools/ci/amd64/gcc/unit_tests.sh -- name: valgrind - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/gcc/valgrind.sh +# - name: valgrind +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/gcc/valgrind.sh ---- -kind: pipeline -type: docker -name: amd64 — clang -trigger: - branch: - - main - -steps: -- name: code coverage - image: ci:latest - pull: if-not-exists - environment: - CODECOV_TOKEN: - from_secret: CODECOV_TOKEN - commands: - - ./tools/ci/amd64/clang/coverage.sh - -- name: leak sanitizer - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/clang/lsan.sh - -- name: memory sanitizer - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/clang/msan.sh - ---- -kind: pipeline -type: docker -name: static analysis -trigger: - branch: - - main - -steps: -- name: clang tidy - image: ci:latest - pull: if-not-exists - privileged: true - commands: - - ./tools/ci/static_analysis/clang_tidy.sh - -- name: clang format - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/static_analysis/clang_format.sh - ---- -kind: pipeline -type: docker -name: documentation — development -node: - environment: ryali -trigger: - branch: - - main - -steps: -- name: build and deploy - image: documentation:latest - pull: if-not-exists - commands: - - pwd - - cd docs - - mkdir generated - - touch generated/changelogs.rst - - touch generated/api.rst - - sphinx-build -M html . . - - - rm -rf /light_docs_dev/* - - mv ./html/* /light_docs_dev/ - ---- - -kind: pipeline -type: docker -name: documentation — production -node: - environment: ryali -trigger: - event: - - tag - -steps: -- name: build and deploy - image: documentation:latest - pull: if-not-exists - commands: - - cd docs - - mkdir generated - - touch generated/changelogs.rst - - touch generated/api.rst - - sphinx-build -M html . . - - - rm -rf /light_docs/* - - mv ./html/* /light_docs/ +# --- +# kind: pipeline +# type: docker +# name: amd64 — clang +# trigger: +# branch: +# - main +# +# steps: +# - name: code coverage +# image: ci:latest +# pull: if-not-exists +# environment: +# CODECOV_TOKEN: +# from_secret: CODECOV_TOKEN +# commands: +# - ./tools/ci/amd64/clang/coverage.sh +# +# - name: leak sanitizer +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/clang/lsan.sh +# +# - name: memory sanitizer +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/clang/msan.sh +# +# --- +# kind: pipeline +# type: docker +# name: static analysis +# trigger: +# branch: +# - main +# +# steps: +# - name: clang tidy +# image: ci:latest +# pull: if-not-exists +# privileged: true +# commands: +# - ./tools/ci/static_analysis/clang_tidy.sh +# +# - name: clang format +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/static_analysis/clang_format.sh +# +# --- +# kind: pipeline +# type: docker +# name: documentation — development +# node: +# environment: ryali +# trigger: +# branch: +# - main +# +# steps: +# - name: build and deploy +# image: documentation:latest +# pull: if-not-exists +# commands: +# - pwd +# - cd docs +# - mkdir generated +# - touch generated/changelogs.rst +# - touch generated/api.rst +# - sphinx-build -M html . . +# +# - rm -rf /light_docs_dev/* +# - mv ./html/* /light_docs_dev/ +# +# --- +# +# kind: pipeline +# type: docker +# name: documentation — production +# node: +# environment: ryali +# trigger: +# event: +# - tag +# +# steps: +# - name: build and deploy +# image: documentation:latest +# pull: if-not-exists +# commands: +# - cd docs +# - mkdir generated +# - touch generated/changelogs.rst +# - touch generated/api.rst +# - sphinx-build -M html . . +# +# - rm -rf /light_docs/* +# - mv ./html/* /light_docs/ diff --git a/tools/ci/amd64/gcc/unit_tests.sh b/tools/ci/amd64/gcc/unit_tests.sh index e44b63a..8466795 100755 --- a/tools/ci/amd64/gcc/unit_tests.sh +++ b/tools/ci/amd64/gcc/unit_tests.sh @@ -4,10 +4,8 @@ set -e cd $(git rev-parse --show-toplevel)/ rm -rf ./build && mkdir build/ && cd build -Xvfb :99 -screen 0 1024x768x16 & export CXX=$(which g++) export CC=$(which gcc) -export DISPLAY=:99 lshw -C display vulkaninfo --summary