|
| 1 | +--- |
| 2 | +id: smartui-with-buildkite |
| 3 | +title: Buildkite Pipeline Integration with SmartUI |
| 4 | +sidebar_label: Buildkite |
| 5 | +description: SmartUI now integrates with Buildkite Pipeline to boost pipeline delivery. Perform automated cross browser testing with SmartUI to seamlessly providing 3000+ real browsers running through machines. |
| 6 | +keywords: |
| 7 | + - lambdatest integrations |
| 8 | + - smart ui integration |
| 9 | + - smart ui integrations with ci/cd tools |
| 10 | + - ci/cd tools |
| 11 | + - continuous integration,continuous delivery |
| 12 | + - continuous integration tools |
| 13 | + - buildkite ci cd |
| 14 | +url: https://www.lambdatest.com/support/docs/smartui-with-buildkite/ |
| 15 | +site_name: LambdaTest |
| 16 | +slug: smartui-with-buildkite/ |
| 17 | +--- |
| 18 | + |
| 19 | +<script type="application/ld+json" |
| 20 | + dangerouslySetInnerHTML={{ __html: JSON.stringify({ |
| 21 | + "@context": "https://schema.org", |
| 22 | + "@type": "BreadcrumbList", |
| 23 | + "itemListElement": [{ |
| 24 | + "@type": "ListItem", |
| 25 | + "position": 1, |
| 26 | + "name": "LambdaTest", |
| 27 | + "item": "https://www.lambdatest.com" |
| 28 | + },{ |
| 29 | + "@type": "ListItem", |
| 30 | + "position": 2, |
| 31 | + "name": "Support", |
| 32 | + "item": "https://www.lambdatest.com/support/docs/" |
| 33 | + },{ |
| 34 | + "@type": "ListItem", |
| 35 | + "position": 3, |
| 36 | + "name": "Buildkite Integration", |
| 37 | + "item": "https://www.lambdatest.com/support/docs/smartui-with-buildkite/" |
| 38 | + }] |
| 39 | + }) |
| 40 | + }} |
| 41 | +></script> |
| 42 | +Buildkite is a hybrid CI/CD platform that allows you to run builds in your own infrastructure, alongside cloud-based execution. This means you can leverage the power of your existing machines or cloud resources to run builds. |
| 43 | + |
| 44 | +This guide explains how to integrate your project with the Buildkite CI/CD pipeline to trigger visual regression testing with LambdaTest SmartUI whenever changes are made to your repository. |
| 45 | + |
| 46 | +## Steps to Integrate Buildkite Pipeline with SmartUI |
| 47 | +To integrate Buildkite Pipeline with SmartUI, follow the below steps. You can use your own project to configure and test it. For demo purposes, we are using the sample repository. |
| 48 | + |
| 49 | +:::tip Sample repo |
| 50 | +Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the SmartUI. |
| 51 | + |
| 52 | +<a href="https://github.com/amanchopra1905/smartui-ci-cd-integrations" target="_blank" className="github__anchor"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> View on GitHub</a> |
| 53 | +::: |
| 54 | + |
| 55 | +### Step 1: Set Up Your Repository |
| 56 | +Ensure your project is hosted in GitHub, or any supported repository. |
| 57 | + |
| 58 | +### Step 2: Create a New Pipeline: |
| 59 | + |
| 60 | +- Navigate to Pipelines in your Buildkite project. |
| 61 | +- Select New Pipeline and connect your repository. |
| 62 | + |
| 63 | +### Step 3: Add Environment Variables |
| 64 | + |
| 65 | +Go to Pipeline Settings > Variables. Add the following variables: |
| 66 | +- `LT_USERNAME`: Your LambdaTest username. |
| 67 | +- `LT_ACCESS_KEY`: Your LambdaTest access key. |
| 68 | + |
| 69 | +### Step 4: Setup your Workflow |
| 70 | + |
| 71 | +```yaml title="pipeline.yml" |
| 72 | +steps: |
| 73 | + - label: "SmartUI Tests" |
| 74 | + agents: |
| 75 | + queue: "default" |
| 76 | + env: |
| 77 | + LT_USERNAME: "${LT_USERNAME}" |
| 78 | + LT_ACCESS_KEY: "${LT_ACCESS_KEY}" |
| 79 | + commands: |
| 80 | + - echo "Checking out code" |
| 81 | + - git clone <REPO_URL> |
| 82 | + - cd <PROJECT_DIRECTORY> |
| 83 | + - echo "Installing SmartUI CLI" |
| 84 | + - npm install @lambdatest/smartui-cli |
| 85 | + - echo "Running SmartUI tests" |
| 86 | + - npx smartui --version |
| 87 | + - npx smartui config:create smartui-web.json |
| 88 | + - npx smartui --config smartui-web.json exec -- mvn --quiet test -D suite=sdk-cloud.xml |
| 89 | +``` |
| 90 | +
|
| 91 | +### Step 5: Check the output |
| 92 | +
|
| 93 | +- After triggering the workflow, check your results in the [Smart UI Dashboard](https://smartui.lambdatest.com/projects) |
| 94 | +
|
| 95 | +<img loading="lazy" src={require('../assets/images/smart-visual-testing/ci-cd-integration/gitlab/3.png').default} alt="Create New Project" width="" height=""/> |
0 commit comments