Unverified Commit 6f51df3d authored by ddavison's avatar ddavison
Browse files

Move test functions into test before_script

parent 1c305099
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -41,6 +41,15 @@ build:
    - kubectl config set-context k3s --cluster=k3s --user=default
    - kubectl config use-context k3s
    - kubectl version
    - |
        function expected_error() {
          echo "Expected error but exited with $?, failing build!"
          exit 1
        }

        function failed_as_expected() {
          echo "Failed as expected and exited with $?"
        }

test-shellcheck:
  stage: test
@@ -251,17 +260,6 @@ release-tag:
  only:
    - tags

before_script:
  - |
    function expected_error() {
      echo "Expected error but exited with $?, failing build!"
      exit 1
    }

    function failed_as_expected() {
      echo "Failed as expected and exited with $?"
    }

publish:
  extends: .semantic-release
  only: