Рет қаралды 811
You have an AWS CodeBuild project in your code pipeline and now you want to add automated tests to it.
Can you do this in a few steps using the AWS console?
--
AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs tests, and produces ready-to-deploy software packages.
AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates.
--
Tutorial Summary:
- The video is about an AWS CodeBuild tutorial for adding tests to a CodePipeline.
- The process involves several steps:
- Create a CodeCommit repository.
- Set up a Cloud9 environment.
- Write code for a Lambda function and tests.
- Create a requirements.txt file.
- Define a buildspec.yml file for CodeBuild.
- Commit and push the code to the CodeCommit repository.
- Create a CodeBuild project.
- Start a build using CodeBuild.
- Observe that the build is successful.
- Modify the test to make it fail.
- Retry the build, and it fails due to the test failure.
- The video concludes by showing that the test failed because the temperature was not below 45 degrees.
P.S. Why did the AWS CodeBuild job apply for a job at the bakery? Because it heard they needed a good "build" process for their dough, and it kneaded the job!