From a33ab7a76534abe8dd7632c85b73aff9a802e906 Mon Sep 17 00:00:00 2001 From: Ray Booysen Date: Thu, 16 May 2019 14:09:24 +0800 Subject: [PATCH 1/2] Added CI Instructions for AWS Codebuild --- docusaurus/docs/running-tests.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index f43dd43b1a7..eae7c4b003f 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -340,6 +340,32 @@ script: Follow [this article](https://medium.com/@knowbody/circleci-and-zeits-now-sh-c9b7eebcd3c1) to set up CircleCI with a Create React App project. +### AWS CodeBuild + +1. Add a buildspec.yml file to your git repository. + +```yaml +version: 0.2 +env: + variables: + CI: "true" +phases: + install: + commands: + - echo Entered the install phase... + - npm install + pre_build: + commands: + - echo Nothing to do in the pre_build phase... + build: + commands: + - npm build + - npm test +``` + +1. Trigger your first build with a git push. +1. [Customize your AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) if needed. + ## On your own environment #### Windows (cmd.exe) From ecfea7fce66086b556d3f80701c4027c3a305bdb Mon Sep 17 00:00:00 2001 From: Ray Booysen Date: Fri, 17 May 2019 09:43:09 +0800 Subject: [PATCH 2/2] Review comments addressed --- docusaurus/docs/running-tests.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index eae7c4b003f..22754d4250c 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -352,11 +352,7 @@ env: phases: install: commands: - - echo Entered the install phase... - npm install - pre_build: - commands: - - echo Nothing to do in the pre_build phase... build: commands: - npm build @@ -364,7 +360,7 @@ phases: ``` 1. Trigger your first build with a git push. -1. [Customize your AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) if needed. +1. [Customize your buildspec](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) if needed. ## On your own environment