Update build (#1081)
* Update build * Only use CGO when building non-Linux. * Update build to Go 1.11 * Use tab indenting consistently. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
0fdc089187
commit
c7dfb82dac
4 changed files with 54 additions and 18 deletions
|
|
@ -4,7 +4,7 @@ version: 2
|
|||
jobs:
|
||||
test:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
- image: circleci/golang:1.11
|
||||
working_directory: /go/src/github.com/prometheus/node_exporter
|
||||
|
||||
steps:
|
||||
|
|
@ -27,13 +27,14 @@ jobs:
|
|||
working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/node_exporter
|
||||
|
||||
environment:
|
||||
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.10-base
|
||||
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.11-base
|
||||
REPO_PATH: github.com/prometheus/node_exporter
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- run: make promu
|
||||
- run: promu crossbuild -v --go 1.10
|
||||
- run: promu --config .promu-no-cgo.yml crossbuild -v --go 1.11
|
||||
- run: promu --config .promu-cgo.yml crossbuild -v --go 1.11
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
|
|
@ -58,7 +59,7 @@ jobs:
|
|||
|
||||
docker_hub_master:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
- image: circleci/golang:1.11
|
||||
working_directory: /go/src/github.com/prometheus/node_exporter
|
||||
|
||||
steps:
|
||||
|
|
@ -77,7 +78,7 @@ jobs:
|
|||
|
||||
docker_hub_release_tags:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
- image: circleci/golang:1.11
|
||||
working_directory: /go/src/github.com/prometheus/node_exporter
|
||||
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue