Enable parallel circleci build

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2021-03-21 15:16:26 +01:00
parent 7652f32104
commit f4a5ca74a9
3 changed files with 13 additions and 26 deletions

View File

@ -2,7 +2,7 @@
version: 2.1 version: 2.1
orbs: orbs:
prometheus: prometheus/prometheus@0.8.0 prometheus: prometheus/prometheus@0.11.0
go: circleci/go@0.2.0 go: circleci/go@0.2.0
jobs: jobs:
@ -19,7 +19,7 @@ jobs:
command: sudo rm -rf /usr/local/go command: sudo rm -rf /usr/local/go
# Whenever the Go version is updated here, .promu.yml should also be updated. # Whenever the Go version is updated here, .promu.yml should also be updated.
- go/install: - go/install:
version: "1.14" version: "1.16"
- run: - run:
name: Remove generated code name: Remove generated code
command: make clean command: make clean
@ -124,6 +124,7 @@ workflows:
only: /.*/ only: /.*/
- prometheus/build: - prometheus/build:
name: build name: build
parallelism: 8
filters: filters:
tags: tags:
only: /.*/ only: /.*/

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, .travis.yml and # Whenever the Go version is updated here, .travis.yml and
# .circle/config.yml should also be updated. # .circle/config.yml should also be updated.
version: 1.14 version: 1.16
repository: repository:
path: github.com/prometheus/alertmanager path: github.com/prometheus/alertmanager
build: build:
@ -24,25 +24,11 @@ tarball:
- NOTICE - NOTICE
crossbuild: crossbuild:
platforms: platforms:
- linux/amd64 - darwin
- linux/386 - dragonfly
- darwin/amd64 - freebsd
- darwin/386 - illumos
- windows/amd64 - linux
- windows/386 - netbsd
- freebsd/amd64 - openbsd
- freebsd/386 - windows
- openbsd/amd64
- openbsd/386
- netbsd/amd64
- netbsd/386
- dragonfly/amd64
- linux/arm
- linux/arm64
- freebsd/arm
- netbsd/arm
- linux/ppc64
- linux/ppc64le
- linux/mips64
- linux/mips64le
- linux/s390x

View File

@ -78,7 +78,7 @@ ifneq ($(shell which gotestsum),)
endif endif
endif endif
PROMU_VERSION ?= 0.10.0 PROMU_VERSION ?= 0.11.1
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
GOLANGCI_LINT := GOLANGCI_LINT :=