# limitations under the License.
#==================================================================================
# limitations under the License.
#==================================================================================
-export DEF_FILE=../definitions/alarm-definition.json
+export DEF_FILE=../../definitions/alarm-definition.json
+export PERF_DEF_FILE=../testresources/perf-alarm-definition.json
+export PERF_OBJ_FILE=../testresources/perf-alarm-object.json
# Build
cd ${ROOT_DIR}/manager && go build -a -installsuffix cgo -ldflags "-X main.Version=$tag -X main.Hash=$hash" -o alarm-manager ./cmd/*.go
# Execute UT and measure coverage for the Alarm Library
cd ${ROOT_DIR}/alarm && go test . -v -coverprofile cover.out
# Build
cd ${ROOT_DIR}/manager && go build -a -installsuffix cgo -ldflags "-X main.Version=$tag -X main.Hash=$hash" -o alarm-manager ./cmd/*.go
# Execute UT and measure coverage for the Alarm Library
cd ${ROOT_DIR}/alarm && go test . -v -coverprofile cover.out
-# Finally compile the CLI
-cd ${ROOT_DIR}/cli && go build -a -installsuffix cgo alarm-cli.go
+# Remove first line of the manager/cover.out and append to alarm-go/coverity.out
+cd ${ROOT_DIR} && sed '1d' manager/cover.out >> coverage.out
+
+cd ${ROOT_DIR} && GO111MODULE=on go tool cover -html=coverage.out -o coverage.html