From 608c313862386d0672d628942b034e3aa393c654 Mon Sep 17 00:00:00 2001 From: Ari Trachtenberg Date: Thu, 12 Sep 2024 17:36:48 -0400 Subject: [PATCH] changed "needs:" format to avoid the "same stage" dependency issue --- ci_cd/lab0.yml | 9 ++++++--- ci_cd/lab1.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ci_cd/lab0.yml b/ci_cd/lab0.yml index 12c4403..3fa47ee 100644 --- a/ci_cd/lab0.yml +++ b/ci_cd/lab0.yml @@ -22,7 +22,8 @@ compile_lab_0: paths: - base_0 - lab0.* - needs: [prebuild_lab_0] + needs: + - prebuild_lab_0 tags: [c++-17] lint_lab_0: @@ -31,7 +32,8 @@ lint_lab_0: - echo "Static code check of lab0.cpp" - cppcheck --check-config --enable=all --inconclusive --error-exitcode=1 lab0.cpp tests/LabZero.cpp allow_failure: false - needs: [compile_lab_0] + needs: + - compile_lab_0 artifacts: paths: - base_0 @@ -45,5 +47,6 @@ test_lab_0: - cp lab0.o base_0/tests - cd base_0/tests - make lab0 - needs: [lint_lab_0] + needs: + - lint_lab_0 tags: [c++-17] \ No newline at end of file diff --git a/ci_cd/lab1.yml b/ci_cd/lab1.yml index a380d0a..727be86 100644 --- a/ci_cd/lab1.yml +++ b/ci_cd/lab1.yml @@ -22,7 +22,8 @@ compile_lab_1: paths: - base_1 - lab1.* - needs: [prebuild_lab_1] + needs: + - prebuild_lab_1 tags: [c++-17] lint_lab_1: @@ -31,7 +32,8 @@ lint_lab_1: - echo "Static code check of lab1.cpp" - cppcheck --check-config --enable=all --inconclusive --error-exitcode=1 lab1.cpp tests/LabOne.cpp allow_failure: false - needs: [compile_lab_1] + needs: + - compile_lab_1 artifacts: paths: - base_1 @@ -45,5 +47,6 @@ test_lab_1: - cp lab1.o base_1/tests - cd base_1/tests - make lab1 - needs: [lint_lab_1] + needs: + - lint_lab_1 tags: [c++-17] \ No newline at end of file -- GitLab