From b1d5a0bc7ef6f5b21f2098179a5e28166fcc2762 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Thu, 28 Jun 2018 14:51:35 +0200 Subject: [PATCH] MON-231 add exit code for git diff --- bitbucket-pipelines.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index e10659f..f207a91 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -3,24 +3,23 @@ image: hashicorp/terraform:full pipelines: default: - step: - name: Format + name: Terraform format script: - terraform fmt -write=false -diff -check - step: - name: Validate + name: Terraform validate script: - mv main.tf.ci main.tf - mv terraform.tfvars.ci terraform.tfvars - terraform init - terraform validate - custom: - manual: - - step: - script: - - apk update - - apk upgrade - - apk add --no-cache bash git grep - - go get github.com/segmentio/terraform-docs - - ./scripts/update_readme.sh - - git status - - git diff + - step: + name: Readme update + script: + - apk update + - apk upgrade + - apk add --no-cache bash git grep + - go get github.com/segmentio/terraform-docs + - ./scripts/update_readme.sh + - git status + - git diff --exit-code