File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version: '1.0'
22stages:
33 - prepare
4+ - build
45 - deploy
6+ - qa
57 - publish
68steps:
79 main_clone:
3032 working_directory: .
3133 commands:
3234 - bash cloud-harness/install.sh
33- - harness-deployment . cloud-harness -t $INCLUDE -n ${{NAMESPACE}} - t ${{DEPLOYMENT_TAG}} -d ${{DOMAIN}} -r ${{REGISTRY}} -rs ${{REGISTRY_SECRET}} -e $ENV -N
35+ - harness-deployment $PATHS - t ${{DEPLOYMENT_TAG}} -d ${{DOMAIN}} -r ${{REGISTRY}} -rs ${{REGISTRY_SECRET}} -n ${{NAMESPACE}} - e $ENV $PARAMS
3436 prepare_deployment_view:
3537 commands:
3638 - 'helm template ./deployment/helm --debug -n ${{NAMESPACE}}'
@@ -55,29 +57,48 @@ steps:
5557 cmd_ps: --wait --timeout 600s --create-namespace
5658 custom_value_files:
5759 - ./deployment/helm/values.yaml
60+ build_test_images:
61+ title: Build test images
62+ type: parallel
63+ stage: qa
64+ steps: []
65+ when:
66+ condition:
67+ all:
68+ whenVarExists: 'includes("${{SKIP_TESTS}}", "{{SKIP_TESTS}}") == true'
5869 wait_deployment:
5970 stage: qa
6071 title: Wait deployment to be ready
6172 image: codefresh/kubectl
6273 commands:
6374 - kubectl config use-context ${{CLUSTER_NAME}}
64- - kubectl config set-context --current --namespace=test- ${{CF_REPO_NAME}}-${{CF_SHORT_REVISION }}
75+ - kubectl config set-context --current --namespace=${{NAMESPACE }}
6576 tests_api:
6677 stage: qa
6778 title: Api tests
6879 working_directory: /home/test
69- image: "${{api-jest}}"
80+ image: "${{test-api}}"
81+ fail_fast: false
7082 commands:
7183 - echo $APP_NAME
7284 scale: {}
85+ when:
86+ condition:
87+ all:
88+ whenVarExists: 'includes("${{SKIP_TESTS}}", "{{SKIP_TESTS}}") == true'
7389 tests_e2e:
7490 stage: qa
7591 title: End to end tests
7692 working_directory: /home/test
77- image: "${{jest-puppeteer}}"
93+ image: "${{test-e2e}}"
94+ fail_fast: false
7895 commands:
7996 - yarn test
8097 scale: {}
98+ when:
99+ condition:
100+ all:
101+ whenVarExists: 'includes("${{SKIP_TESTS}}", "{{SKIP_TESTS}}") == true'
81102 manual_tests:
82103 type: pending-approval
83104 stage: publish
You can’t perform that action at this time.
0 commit comments