Loading ci_cd/problems.yml +10 −10 Original line number Diff line number Diff line Loading @@ -14,12 +14,12 @@ test_problem0a: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "oneA.cpp" ]; then - echo "oneA.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp oneA.cpp base_5/tests/0a - cd base_5/tests/0a - make problem0a Loading @@ -33,12 +33,12 @@ test_problem0b: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLink.cpp" ]; then - echo "SimpleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0b - cd base_5/tests/0b - make problem0b Loading @@ -52,12 +52,12 @@ test_problem0c: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLink.cpp" ]; then - echo "SimpleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0c - cd base_5/tests/0c - make problem0c Loading @@ -75,7 +75,7 @@ test_problem0c: dependencies: - problem0c script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLinkStr.h" ]; then - echo "SimpleLinkStr.h does not exist"; - exit 1; Loading @@ -84,7 +84,7 @@ test_problem0c: - echo "SimpleLinkStr.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0c - cp SimpleLinkStr.h base_5/tests/0c - cp SimpleLinkStr.cpp base_5/tests/0c Loading @@ -101,7 +101,7 @@ test_problem2: dependencies: - problem0c script: - # Check if source files exist # Check if source files exist - if [ ! -f "DoubleLink.h" ]; then - echo "DoubleLink.h does not exist"; - exit 1; Loading @@ -110,7 +110,7 @@ test_problem2: - echo "DoubleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/2 - cp DoubleLink.cpp base_5/tests/2 - cp DoubleLink.h base_5/tests/2 Loading Loading
ci_cd/problems.yml +10 −10 Original line number Diff line number Diff line Loading @@ -14,12 +14,12 @@ test_problem0a: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "oneA.cpp" ]; then - echo "oneA.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp oneA.cpp base_5/tests/0a - cd base_5/tests/0a - make problem0a Loading @@ -33,12 +33,12 @@ test_problem0b: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLink.cpp" ]; then - echo "SimpleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0b - cd base_5/tests/0b - make problem0b Loading @@ -52,12 +52,12 @@ test_problem0c: dependencies: - prebuild script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLink.cpp" ]; then - echo "SimpleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0c - cd base_5/tests/0c - make problem0c Loading @@ -75,7 +75,7 @@ test_problem0c: dependencies: - problem0c script: - # Check if source files exist # Check if source files exist - if [ ! -f "SimpleLinkStr.h" ]; then - echo "SimpleLinkStr.h does not exist"; - exit 1; Loading @@ -84,7 +84,7 @@ test_problem0c: - echo "SimpleLinkStr.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/0c - cp SimpleLinkStr.h base_5/tests/0c - cp SimpleLinkStr.cpp base_5/tests/0c Loading @@ -101,7 +101,7 @@ test_problem2: dependencies: - problem0c script: - # Check if source files exist # Check if source files exist - if [ ! -f "DoubleLink.h" ]; then - echo "DoubleLink.h does not exist"; - exit 1; Loading @@ -110,7 +110,7 @@ test_problem2: - echo "DoubleLink.cpp does not exist"; - exit 1; - fi - # compile and run tests # compile and run tests - cp SimpleLink.cpp base_5/tests/2 - cp DoubleLink.cpp base_5/tests/2 - cp DoubleLink.h base_5/tests/2 Loading