From 545f251b3992ea8b37b33179091e1d901a2087fe Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Sun, 8 Jan 2023 23:11:15 +0000 Subject: [PATCH] Update .gitlab-ci.yml file. Correct syntax, organize pipeline parallelism --- .gitlab-ci.yml | 120 ++++++++++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 51 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4b866243..f133ec073 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,56 +13,6 @@ stages: - deploy -# -# Cleaning, build, test -# -.test: &test - needs: [] - stage: clean - script: - - ./cicd_testing/do-clean.sh - - ./cicd_testing/do-build.sh - - ./cicd_testing/eh-tests.sh - - ./cicd_testing/builtin-xforms.sh - - ./cicd_testing/elfdep.sh - - test-arm32: - needs: [] - stage: clean - script: - - ./cicd_testing/do-clean.sh - - ./cicd_testing/do-build.sh - -test-arm64: - needs: [] - stage: clean - script: - - ./cicd_testing/do-clean.sh - - ./cicd_testing/do-build.sh - - ./cicd_testing/builtin-xforms.sh - -# per os items -test-ubuntu18: - <<: *test - tags: - - ubuntu18 - -test-coss9: - <<: *test - tags: - - coss9 - -test-ubuntu20: - <<: *test - tags: - - ubuntu20 - -test-ubuntu22: - <<: *test - tags: - - ubuntu22 - - # # gather artifacts and ship them tox 86 boxes @@ -114,11 +64,12 @@ protect-arm-ubuntu22: stage: test script: - ./cicd_testing/do-test-bins.sh - artifacts: + artifacts: expire_in: 1 day paths: - artifacts/ + test-bins-arm32: <<: *test_arm_bins tags: @@ -129,11 +80,78 @@ test-bins-arm64: tags: - arm64 +# +# Cleaning, build, test +# +.test: &test + needs: [] + stage: test + script: + - ./cicd_testing/do-clean.sh + - ./cicd_testing/do-build.sh + - ./cicd_testing/eh-tests.sh + - ./cicd_testing/builtin-xforms.sh + - ./cicd_testing/elfdep.sh + +# +# gather artifacts and ship them tox 86 boxes +# +.test_arm_bins: &test_arm_bins + needs: [protect-arm-ubuntu22] + stage: test + script: + - ./cicd_testing/do-test-bins.sh + artifacts: + expire_in: 1 day + paths: + - artifacts/ + +test-arm32: + needs: [] + stage: test + script: + - ./cicd_testing/do-clean.sh + - ./cicd_testing/do-build.sh + +test-arm64: + needs: [] + stage: test + script: + - ./cicd_testing/do-clean.sh + - ./cicd_testing/do-build.sh + - ./cicd_testing/builtin-xforms.sh + +# per os items +test-ubuntu18: + <<: *test + tags: + - ubuntu18 + +test-coss9: + <<: *test + tags: + - coss9 + +test-ubuntu20: + <<: *test + tags: + - ubuntu20 + +test-ubuntu22: + <<: *test + tags: + - ubuntu22 + + + + + # # deploy a docker image # deploy-u22: + needs: [test-coss9, test-ubuntu18, test-ubuntu20, test-ubuntu22, test-arm32, test-arm64, test-bins-arm32, test-bins-arm64] stage: deploy script: - ./cicd_testing/do-clean.sh -- GitLab