github.com/tetrafolium/tflint@v0.8.0/tflint/test-fixtures/v0.11.0_module/.terraform/modules/abc3234899392665e7e4875ddfd1340d/hashicorp-terraform-aws-consul-ee980b4/circle.yml (about)

     1  machine:
     2    environment:
     3      PATH: $PATH:$HOME/terraform:$HOME/packer:$HOME/glide/linux-amd64
     4  
     5  dependencies:
     6    override:
     7      # Install the gruntwork-module-circleci-helpers and use it to configure the build environment and run tests.
     8      - curl -Ls https://raw.githubusercontent.com/gruntwork-io/gruntwork-installer/master/bootstrap-gruntwork-installer.sh | bash /dev/stdin --version v0.0.17
     9      - gruntwork-install --module-name "gruntwork-module-circleci-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.3.17"
    10      - gruntwork-install --module-name "build-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.3.17"
    11      - gruntwork-install --module-name "aws-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.3.17"
    12      - configure-environment-for-gruntwork-module --go-src-path test
    13  
    14    cache_directories:
    15      - ~/terraform
    16      - ~/packer
    17      - ~/glide
    18  
    19  test:
    20    override:
    21      # To create AMIs for the first time in a new AWS account, make the code changes (e.g. updating AWS account number)
    22      # in the appropriate .tf files) in a branch named "publish-amis". This will bypass tests but still build the AMIs.
    23      - if [[ $CIRCLE_BRANCH != "publish-amis" ]]; then run-go-tests --path test; fi
    24  
    25  deployment:
    26    release:
    27      tag: /v.*/
    28      commands:
    29        # If a new release is tagged in GitHub, build the AMIs and publish them to all regions.
    30        - ~/$CIRCLE_PROJECT_REPONAME/_ci/publish-amis.sh "ubuntu16-ami"
    31        - ~/$CIRCLE_PROJECT_REPONAME/_ci/publish-amis.sh "amazon-linux-ami"
    32  
    33      branch: publish-amis
    34      commands:
    35        # We generally only want to build AMIs on new releases, but when we are setting up AMIs in a new account for the
    36        # first time, we want to build the AMIs but NOT run automated tests, since those tests will fail without an existing
    37        # AMI already in the AWS Account.
    38        - ~/$CIRCLE_PROJECT_REPONAME/_ci/publish-amis.sh "ubuntu16-ami"
    39        - ~/$CIRCLE_PROJECT_REPONAME/_ci/publish-amis.sh "amazon-linux-ami"