Skip to content

Commit e0b34f2

Browse files
author
Saied Kazemi
authored
Upgrade repo to Go 1.18 (#41)
* Upgrade repo to Go 1.18
1 parent fa81cd3 commit e0b34f2

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
language: go
22

33
go:
4-
- '1.14'
4+
- 1.18
55

6-
# Unconditionally place the repo at GOPATH/src/${go_import_path} to support
7-
# forks.
8-
go_import_path: github.com/m-lab/prometheus-bigquery-exporter
9-
10-
11-
before_install:
12-
- go get github.com/mattn/goveralls
6+
install:
7+
- go get -v -t ./...
8+
- go install github.com/mattn/goveralls@latest
139

1410
script:
1511
# Run query "unit tests".

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM golang:alpine3.15 as builder
1+
FROM golang:1.18 as builder
22
ADD . /go/src/github.com/m-lab/prometheus-bigquery-exporter
33
WORKDIR /go/src/github.com/m-lab/prometheus-bigquery-exporter
4-
RUN apk add gcc libc-dev git
4+
ENV CGO_ENABLED 0
55
RUN go vet && \
66
go get -t . && \
77
go install .

0 commit comments

Comments
 (0)