This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 9
9
- 1.11.x
10
10
11
11
script :
12
- - make install-deps build test integration-test stage-release-binaries
12
+ - make install-deps
13
+ - make
14
+ - make integration-test
15
+ - make stage-release-binaries
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ $(LOCAL_BINARY): $(SOURCES) GITCOMMIT_SHA
23
23
./scripts/build_binary.sh ./bin/local img2lambda $(VERSION ) $(shell cat GITCOMMIT_SHA)
24
24
@echo " Built img2lambda"
25
25
26
- .PHONY : test
27
- test :
28
- go test -v -timeout 30s -short -cover $(shell go list ./img2lambda/... | grep -v /vendor/)
29
-
30
26
.PHONY : integration-test
31
27
integration-test : $(LOCAL_BINARY )
32
28
./scripts/build_example.sh
@@ -66,7 +62,7 @@ docker-test:
66
62
--workdir=/usr/src/app/src/github.com/awslabs/img2lambda \
67
63
--env GOPATH=/usr/src/app \
68
64
--env IMG_TOOL_RELEASE=$(IMG_TOOL_RELEASE ) \
69
- golang:1.11 make test
65
+ golang:1.11 make
70
66
71
67
.PHONY : stage-release-binaries
72
68
stage-release-binaries : $(LINUX_BINARY ) $(DARWIN_BINARY ) $(WINDOWS_BINARY )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
6
# SPDX-License-Identifier: MIT-0
5
7
@@ -26,6 +28,9 @@ if [[ -n "${4}" ]]; then
26
28
fi
27
29
28
30
GOOS=$TARGET_GOOS go build -a -tags=" ${BUILDTAGS} " -ldflags " -s ${VERSION_LDFLAGS} " -o $1 /$2 ./img2lambda/cli
31
+
32
+ go test -v -tags=" ${BUILDTAGS} " -timeout 30s -short -cover $( go list ./img2lambda/... | grep -v /vendor/ | grep -v /internal/)
33
+
29
34
cd $1
30
35
md5sum $2 > $2 .md5
31
36
sha256sum $2 > $2 .sha256
You can’t perform that action at this time.
0 commit comments