From b06b84cabd88fecae4b3cfa542932b17b3b06447 Mon Sep 17 00:00:00 2001 From: Andre M Date: Tue, 13 Nov 2018 11:52:06 -0500 Subject: [PATCH 1/3] Update buildspec.yml --- buildspec.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 3e4a60f..eeb9baa 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,12 +3,17 @@ phases: install: commands: - echo install + - sleep $SLEEP_TIME pre_build: commands: - echo pre_build build: commands: - echo build + - "bash -c '[ \"$FAIL\" == \"\" ]'" post_build: commands: - echo post_build +#artifacts: +# files: '**/*' +# base-directory: artifacts From 1b87dea03b0b6957bdd08386b2922c00b352f158 Mon Sep 17 00:00:00 2001 From: Andre M Date: Tue, 13 Nov 2018 11:52:40 -0500 Subject: [PATCH 2/3] Update .cbuildci.yml --- .cbuildci.yml | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.cbuildci.yml b/.cbuildci.yml index 71eeed2..f8b1bdd 100644 --- a/.cbuildci.yml +++ b/.cbuildci.yml @@ -1,8 +1,50 @@ version: 1 defaults: - timeoutInMinutes: 2 +# stopIfNotBranchHead: false + timeoutInMinutes: 10 image: 'aws/codebuild/nodejs:8.11.0' + environmentVariables: + - name: SLEEP_TIME + value: "5" builds: + lint-quick: + codeBuildProjectArn: 'arn:aws:codebuild:us-east-1:493678911134:project/cbuildci-build-1' + commitStatus: awsbuild/linting-quick + environmentVariables: + - name: SLEEP_TIME + value: "5" + lint: + commitStatus: awsbuild/linting-slow + environmentVariables: + - name: SLEEP_TIME + value: "5" + + unit-tests: + commitStatus: awsbuild/unit-tests + timeoutInMinutes: 5 + + integration-tests: + dependsOn: + - unit-tests + commitStatus: awsbuild/integration-tests + image: 'aws/codebuild/docker:17.09.0' + privilegedMode: true + + final-tests: + dependsOn: + - integration-tests + + failed-tests: + environmentVariables: + - name: FAIL + value: "Y" + - name: SLEEP_TIME + value: "60" + + failed-dep: + dependsOn: + - final-tests + - failed-tests From ccadf316205650821b3389650782f09b1abacfd7 Mon Sep 17 00:00:00 2001 From: Andre M Date: Tue, 13 Nov 2018 13:06:07 -0500 Subject: [PATCH 3/3] Update buildspec.yml --- buildspec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/buildspec.yml b/buildspec.yml index eeb9baa..970b864 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -17,3 +17,4 @@ phases: #artifacts: # files: '**/*' # base-directory: artifacts +# foobar