Skip to content

Files

Latest commit

 

History

History
128 lines (95 loc) · 5.38 KB

aws-codepipeline-with-hyperexecute.md

File metadata and controls

128 lines (95 loc) · 5.38 KB
id title hide_title sidebar_label description keywords url site_name slug
aws-codepipeline-with-hyperexecute
How to integrate AWS CodePipeline with HyperExecute
true
AWS CodePipeline
Optimize AWS CodePipeline with HyperExecute for seamless, efficient testing. Streamline your CI/CD workflow with LambdaTest's comprehensive guide.
lambdatest integrations
lambdatest integrations with ci/cd tools
hyperexecute integrations
hyperexecute integrations with ci/cd tools
continuous integration
aws codepipeline
continuous integration tools
LambdaTest
aws-codepipeline-with-hyperexecute/
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "LambdaTest", "item": "https://www.lambdatest.com/" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/" },{ "@type": "ListItem", "position": 4, "name": "AWS CodePipeline Integration with HyperExecute", "item": "https://www.lambdatest.com/support/docs/aws-codepipeline-with-hyperexecute/" }] }) }} ></script>

AWS CodePipeline Integration With HyperExecute

AWS CodePipeline is a cloud-based continuous delivery platform for fully automating your release pipelines. Provides an intuitive interface for configuring & modeling different stages of release cycles, so you can envision how your code changes would look when pushed across these different changes. You can also track your pipeline in real-time, and look into the pipeline history to understand the timestamps involved in the execution of various pipelines.

This document will show you how to integrate AWS CodePipeline with HyperExecute to greatly shorten your test cycles.

How to Integrate AWS CodePipeline with HyperExecute


To integrate AWS CodePipeline with HyperExecute, follow the below mentioned steps:

You can use your own project to configure and test it. For demo purposes, we are using the sample repository.

:::tip Sample repo Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the HyperExecute.

<img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> View on GitHub :::

Step 1: Create a new AWS CodePipeline pipeline.

  • Enter the Pipeline Name.
  • Under Service role, select New service role. Click Next.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/aws/STEP1.webp').default} alt="Image" className="doc_img"/>

Step 2: Add a Source Provider

  • In the Source Provider, select the GitHub (Version 2) option.
  • Connect your GitHub account.
  • Select the desired Repository.
  • Select the specified branch name, for which you want to establish the pipeline.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/aws/STEP2.webp').default} alt="Image" className="doc_img"/>

Step 3: Select the Build Provider

  • Add a Build action to the pipeline. Select the CodeBuild as the build provider.
  • Click on Create a Project button.
  • For the demo we are selecting OS as Amazon Linux 2, Runtime as standard, Image - amazonlinux2-x86_64_standard:4.0, and Runtime Environment as Linux.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/aws/STEP3.webp').default} alt="Image" className="doc_img"/>

Step 4: Create a buildspec.yml file

  • Create a buildspec.yml file in the root directory of the repository where the tests are written.

  • Sample buildspec.yml file

version: 0.2

phases:
  install:
    commands:
      # Download Hyperexecute CLI for macOS (adjust for other OS)
      - name: Download Hyperexecute CLI
        command: wget https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
      # Grant execute permission to the downloaded binary
      - name: Make HyperExecute executable
        command: chmod u+x hyperexecute
  build:
    commands:
      # Run Hyperexecute with user credentials and configuration file
      - name: Trigger HyperExecute tests
        command: ./hyperexecute --user <your_user_name> --key <your_access_key> --config <your_yaml_file>
  • In the buildspec specification, choose the first option - "Use a buildspec file".

  • Now Click the "continue to code pipeline" button and then click on Next.

  • You can "Skip deploy stage" and finally click "Create Pipeline" button.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/aws/STEP4.webp').default} alt="Image" className="doc_img"/>

Save the pipeline.

Once the pipeline is created, it will start automatically. The first time the pipeline runs, it will fetch the latest code from your GitHub repository and build your project. The built project will then be deployed to HyperExecute.

Output

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/aws/STEP5.webp').default} alt="Image" className="doc_img"/>