From 4b6c9ea1f7a84c973b18b04f6adac23af1392fc6 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 12 Jul 2023 10:02:18 +0100 Subject: [PATCH] Move DocC and integration tests into separate CI pipelines --- docker/docker-compose.yaml | 10 ++++++++++ scripts/soundness.sh | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index be08dd94..38a8289e 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -35,3 +35,13 @@ services: shell: <<: *common entrypoint: /bin/bash + + integration-test: + <<: *common + command: /bin/bash -xcl "swift -version && uname -a && bash ./scripts/run-integration-test.sh" + + docc-test: + <<: *common + command: /bin/bash -xcl "swift -version && uname -a && bash ./scripts/check-for-docc-warnings.sh" + environment: + DOCC_TARGET: OpenAPIRuntime diff --git a/scripts/soundness.sh b/scripts/soundness.sh index 77b778d7..f8ae7050 100755 --- a/scripts/soundness.sh +++ b/scripts/soundness.sh @@ -20,15 +20,12 @@ fatal() { error "$@"; exit 1; } CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" NUM_CHECKS_FAILED=0 -export DOCC_TARGET=OpenAPIRuntime SCRIPT_PATHS=( "${CURRENT_SCRIPT_DIR}/check-for-broken-symlinks.sh" "${CURRENT_SCRIPT_DIR}/check-for-unacceptable-language.sh" "${CURRENT_SCRIPT_DIR}/check-license-headers.sh" "${CURRENT_SCRIPT_DIR}/run-swift-format.sh" - "${CURRENT_SCRIPT_DIR}/check-for-docc-warnings.sh" - "${CURRENT_SCRIPT_DIR}/run-integration-test.sh" ) for SCRIPT_PATH in "${SCRIPT_PATHS[@]}"; do