Skip to content

Commit 064fc52

Browse files
committed
Refactor API
1 parent 3ce4aa4 commit 064fc52

175 files changed

Lines changed: 20960 additions & 21401 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Rain
2-
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

TODO.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

aws/buildspec.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

aws/cfn.template

Lines changed: 0 additions & 81 deletions
This file was deleted.

build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ declare -A PLATFORMS=([linux]=linux [darwin]=macos [windows]=windows)
1313
declare -A ARCHITECTURES=([386]=i386 [amd64]=amd64 [arm]=arm [arm64]=arm64)
1414
declare -A VARIANTS=([default]="" [nocgo]="CGO_ENABLED=0")
1515

16-
# Run tests first
1716
golint -set_exit_status ./... || exit 1
17+
18+
# Run tests
1819
go vet ./... || exit 1
1920
go test ./... || exit 1
2021

22+
# Run functional tests
23+
go vet -tags=func_test ./... || exit 1
24+
go test -tags=func_test ./... || exit 1
25+
2126
echo "Building $NAME $VERSION..."
2227

2328
for platform in ${!PLATFORMS[@]}; do
@@ -46,7 +51,7 @@ for platform in ${!PLATFORMS[@]}; do
4651

4752
mkdir -p "$OUTPUT_DIR/$full_name"
4853

49-
eval GOOS=$platform GOARCH=$architecture ${VARIANTS[$variant]} go build -o "$OUTPUT_DIR/${full_name}/${bin_name}"
54+
eval GOOS=$platform GOARCH=$architecture ${VARIANTS[$variant]} go build -o "$OUTPUT_DIR/${full_name}/${bin_name}" ./cmd/rain
5055
cp LICENSE "$OUTPUT_DIR/$full_name"
5156
cp README.md "$OUTPUT_DIR/$full_name"
5257

cfn/cfn.go

Lines changed: 0 additions & 95 deletions
This file was deleted.

cfn/cfn_test.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)