Skip to content

Commit 5176e05

Browse files
committed
Fold AWS CLI installation into one line in CircleCI
1 parent 4e6e6e4 commit 5176e05

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.circleci/config.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- run:
1010
name: License Test
1111
command: make find-missing-license
12-
- run:
12+
- run:
1313
name: Go Tests
1414
command: make test-go
1515
release-test:
@@ -19,22 +19,19 @@ jobs:
1919
- checkout
2020
- run:
2121
name: Version Test
22-
command: if build/is-release-branch.sh $CIRCLE_BRANCH; then make find-missing-version; fi
22+
command: if build/is-release-branch.sh $CIRCLE_BRANCH; then make find-missing-version; fi
2323
deploy:
2424
docker:
2525
- image: circleci/golang:1.11.5
2626
steps:
27+
- run: curl -s "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && unzip awscli-bundle.zip && sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws && rm -rf awscli-bundle*
2728
- checkout
2829
- setup_remote_docker
29-
- run: mkdir /tmp/awscli && curl -s -o /tmp/awscli/awscli-bundle.zip https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
30-
- run: unzip /tmp/awscli/awscli-bundle.zip -d /tmp/awscli >/dev/null
31-
- run: sudo python /tmp/awscli/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws >/dev/null
3230
- run: make build-images
3331
- run: make test-python
34-
- run: make push-images
32+
- run: make push-images
3533
- run: make build-and-upload-cli
3634

37-
3835
workflows:
3936
version: 2
4037
build_and_test:

0 commit comments

Comments
 (0)