From 61b365bae3daa15d3504e786c2b85845e655c8bb Mon Sep 17 00:00:00 2001 From: light7734 Date: Mon, 14 Oct 2024 12:23:55 +0330 Subject: [PATCH] cicd: add workspace --- .drone.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index b9dae53..20c0245 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,15 +1,7 @@ -volumes: - - name: apt_cache - temp: {} - - name: shared_data - temp: {} - steps: - &install_dependencies name: install_dependencies image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - apt update - apt-get install -y build-essential cmake clang clang-tidy gcc g++ python3 python3-pip python3.12-venv @@ -17,8 +9,6 @@ steps: - &setup_conan name: setup_conan image: ubuntu:latest - volumes: - - shared_data:/opt/data environment: CONAN_REVISIONS_ENABLED: "1" commands: @@ -29,8 +19,6 @@ steps: - &echo_info name: echo_info image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - pip --version - python --version @@ -45,8 +33,6 @@ steps: - &build_gcc name: build_gcc image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - rm -rv ./build - export CC=$(which gcc) @@ -62,8 +48,6 @@ steps: - &build_clang name: build_clang image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - rm -rv ./build - export CC=$(which clang) @@ -79,24 +63,18 @@ steps: - &static_analysis name: static_analysis image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - echo "[TODO] Implement static analysis" - &run_tests name: run_tests image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - echp "[TODO] Implement tests" - &report_coverage name: report_coverage image: ubuntu:latest - volumes: - - shared_data:/opt/data commands: - echp "[TODO] Implement coverage report" @@ -118,3 +96,6 @@ steps: - *report_coverage - *run_tests +workspace: + path: /opt +