CircleCI
CircleCI is a continuous integration platform that builds your code in a clean container or virtual machine on every commit. This example uses CircleCI with GitHub to trigger a CloudQA test suite. See CI/CD integrations for the variables and what you need first.
Set up
Section titled “Set up”- Add the configuration below to
.circleci/config.ymlin your repository, and fill in your values. - Log in to CircleCI with your GitHub account and set up the project by following the on-screen instructions.
- Commit and run the build.
version: 2
jobs: build: environment: CLOUDQA_API_KEY: "<API key>" CLOUDQA_SUITE_ID: "<TestSuite ID>" CLOUDQA_BROWSER: "<Browser (Chrome or Firefox)>" CLOUDQA_BUILD_TAG: "<Build ID>" CLOUDQA_BASE_URL: "<Application Start URL>" CLOUDQA_VARIABLES: "var1=val1,var2=val2" CLOUDQA_SEQUENTIAL_EXECUTION: "true" CLOUDQA_ENVIRONMENT_NAME: "<Environment name>"
machine: image: ubuntu-2204:current
steps: - run: sudo apt-get update && sudo apt-get install -y jq - run: curl -O https://cquserfiles.s3.amazonaws.com/6394/28cb57ae611041d2a44ae2bcb3bbad66/cloudqa-app-circleci.sh - run: bash cloudqa-app-circleci.sh