Skip to content

Commit dc1a83b

Browse files
Update tests
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 6b9384f commit dc1a83b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

images/Dockerfile.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Uses Go v1.12 and Postgres 11
12
FROM golang:1.12
23
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y ca-certificates openssh-client git curl make sudo
34
ADD tests/ACCC4CF8.asc .
45
RUN sudo apt-key add ACCC4CF8.asc
56
ADD tests/pgdg.list /etc/apt/sources.list.d/pgdg.list
67
RUN sudo apt update -y && sudo apt -y install postgresql-11
7-
RUN go get -u github.com/cncf/devstatscode && go get -d github.com/cncf/devstats && go get -u golang.org/x/lint/golint && go get -u golang.org/x/tools/cmd/goimports && go get -u github.com/jgautheron/goconst/cmd/goconst && go get -u github.com/jgautheron/usedexports && go get -u github.com/kisielk/errcheck && go get -u github.com/olivere/elastic
8+
RUN go get -u github.com/cncf/devstatscode && go get -d github.com/cncf/devstats && go get -u golang.org/x/lint/golint && go get -u golang.org/x/tools/cmd/goimports && go get -u github.com/jgautheron/goconst/cmd/goconst && go get -u github.com/jgautheron/usedexports && go get -u github.com/kisielk/errcheck && go get -u github.com/olivere/elastic && go get -u gopkg.in/yaml.v2
89
ADD tests/test.sh .
910
CMD ./test.sh

tests/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ cd /go/src/github.com/cncf/devstatscode || exit 10
1212
make || exit 11
1313
make test || exit 12
1414
GHA2DB_PROJECT=kubernetes GHA2DB_LOCAL=1 PG_PASS=pwd ./dbtest.sh || exit 13
15-
cd /go/src/github.com/cncf/devstatscode || exit 14
15+
cd /go/src/github.com/cncf/devstats || exit 14
1616
make check || exit 15
1717
PG_PASS=pwd make test || exit 16

0 commit comments

Comments
 (0)