Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit 60a3e85

Browse files
author
Andrew Rynhard
committed
Fix CI coverage reports
1 parent cb4020c commit 60a3e85

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ script:
2828
- travis_wait 30 make
2929

3030
after_success:
31+
- docker run --volume=$(pwd):/out --entrypoint=sh logicmonitor/argus:latest cp /tmp/coverage.txt /out
3132
- bash <(curl -s https://codecov.io/bash)

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ RUN go get -u github.com/alecthomas/gometalinter
1010
RUN gometalinter --install
1111
COPY --from=build $GOPATH/src/github.com/logicmonitor/k8s-argus ./
1212
RUN chmod +x ./scripts/test.sh; sync; ./scripts/test.sh
13+
RUN cp coverage.txt /tmp/coverage.txt
1314

1415
FROM alpine:3.6
1516
MAINTAINER Andrew Rynhard <[email protected]>
1617
RUN apk --update add ca-certificates \
1718
&& rm -rf /var/cache/apk/* \
1819
&& rm -rf /var/lib/apk/*
1920
WORKDIR /app
21+
COPY --from=test /coverage.txt /tmp/coverage.txt
2022
COPY --from=build /argus /bin
2123
ENTRYPOINT ["argus"]

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ REPOSITORY := argus
33
VERSION := 0.1.0-alpha.2
44

55
all:
6-
docker build --build-arg VERSION=$(VERSION) -t $(NAMESPACE)/$(REPOSITORY):$(VERSION) .
6+
docker build --build-arg VERSION=$(VERSION) -t $(NAMESPACE)/$(REPOSITORY):latest .
7+
docker tag $(NAMESPACE)/$(REPOSITORY):latest $(NAMESPACE)/$(REPOSITORY):$(VERSION)

scripts/deploy.sh

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

0 commit comments

Comments
 (0)