Skip to content

Instantly share code, notes, and snippets.

@akshayamaldhure
Last active February 21, 2023 05:12
Show Gist options
  • Save akshayamaldhure/bc63ea1cc02232b59f1ec5effa1be571 to your computer and use it in GitHub Desktop.
Save akshayamaldhure/bc63ea1cc02232b59f1ec5effa1be571 to your computer and use it in GitHub Desktop.
CI configuration for the test project - Demo
# qa/gitlab-ci-test-project.git
variables:
APPLICATION_PROJECT_1_CODE: 39941
stages:
- build_and_publish
- functional_tests
build:
stage: build_and_publish
script:
- echo "Building and publishing the project"
run_my_awesome_tests:
stage: functional_tests
variables:
LOCALE: "ID"
script:
- echo "Running my awesome tests on $ENV environment for locale $LOCALE"
- touch output.csv
- echo "test1,test2" > output.csv
rules:
- if: '$CI_PIPELINE_SOURCE == "pipeline" && $UPSTREAM_PROJECT_ID == $APPLICATION_PROJECT_1_CODE && $UPSTREAM_JOB_NAME == "functional-test-suite-1"'
when: always
allow_failure: false
- if: '$CI_PIPELINE_SOURCE == "pipeline" && $UPSTREAM_PROJECT_ID == $APPLICATION_PROJECT_1_CODE && $UPSTREAM_JOB_NAME == "functional-test-suite-2"'
when: always
allow_failure: false
artifacts:
when: always
paths:
- output.csv
needs:
- build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment