Skip to content

Commit 15c3016

Browse files
author
jasonwalsh
committed
Update CircleCI configuration
1 parent 106aa66 commit 15c3016

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.circleci/config.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
1+
commands:
2+
terraform:
3+
description: Download Terraform
4+
steps:
5+
- run:
6+
command: |
7+
wget -O terraform.zip https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip
8+
sudo unzip -d /usr/local/bin terraform.zip
19
jobs:
210
build:
311
docker:
4-
- image: hashicorp/terraform:0.11.11
5-
environment:
6-
TERRAFORM_VERSION: v0.11
12+
- image: circleci/golang:1.11-stretch-browsers-legacy
713
steps:
814
- checkout
15+
- terraform
916
- run:
1017
command: terraform init
18+
working_directory: /go/src/github.com/mongodb/terraform-aws-ecs-task-definition
1119
test:
1220
docker:
13-
- image: hashicorp/terraform:0.11.11
14-
environment:
15-
TERRAFORM_VERSION: v0.11
21+
- image: circleci/golang:1.11-stretch-browsers-legacy
1622
steps:
1723
- checkout
24+
- terraform
1825
- run:
1926
command: |
2027
terraform init
2128
terraform fmt -check=true
2229
terraform validate
30+
31+
dep ensure
2332
go test -v ./...
24-
version: 2
33+
working_directory: /go/src/github.com/mongodb/terraform-aws-ecs-task-definition
34+
version: 2.1
2535
workflows:
2636
build-test:
2737
jobs:

0 commit comments

Comments
 (0)