2018-04-21 05:35:53 +00:00
|
|
|
---
|
2018-10-09 12:24:36 +00:00
|
|
|
version: 2.1
|
2018-04-21 05:35:53 +00:00
|
|
|
|
2019-07-15 07:41:28 +00:00
|
|
|
orbs:
|
|
|
|
prometheus: prometheus/prometheus@0.1.0
|
|
|
|
|
2018-10-16 07:41:45 +00:00
|
|
|
executors:
|
|
|
|
# Whenever the Go version is updated here, .travis.yml and .promu.yml
|
|
|
|
# should also be updated.
|
|
|
|
golang:
|
2018-04-21 05:35:53 +00:00
|
|
|
docker:
|
2019-10-17 12:38:09 +00:00
|
|
|
- image: circleci/golang:1.13-node
|
2018-10-16 07:41:45 +00:00
|
|
|
|
2019-08-21 08:43:53 +00:00
|
|
|
fuzzit:
|
|
|
|
docker:
|
|
|
|
- image: fuzzitdev/golang:1.12.7-buster
|
|
|
|
|
2018-10-16 07:41:45 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
executor: golang
|
2018-04-21 05:35:53 +00:00
|
|
|
|
|
|
|
steps:
|
2019-07-15 07:41:28 +00:00
|
|
|
- prometheus/setup_environment
|
2019-05-03 13:11:28 +00:00
|
|
|
- run:
|
2019-07-15 09:20:08 +00:00
|
|
|
command: make
|
2019-05-03 13:11:28 +00:00
|
|
|
environment:
|
2019-09-30 15:54:55 +00:00
|
|
|
# Run garbage collection more aggressively to avoid getting OOMed during the lint phase.
|
2019-05-03 13:11:28 +00:00
|
|
|
GOGC: "20"
|
2019-07-15 09:20:08 +00:00
|
|
|
# By default Go uses GOMAXPROCS but a Circle CI executor has many
|
|
|
|
# cores (> 30) while the CPU and RAM resources are throttled. If we
|
|
|
|
# don't limit this to the number of allocated cores, the job is
|
|
|
|
# likely to get OOMed and killed.
|
|
|
|
GOOPTS: "-p 2"
|
2019-07-15 07:41:28 +00:00
|
|
|
- prometheus/check_proto
|
|
|
|
- prometheus/store_artifact:
|
|
|
|
file: prometheus
|
|
|
|
- prometheus/store_artifact:
|
|
|
|
file: promtool
|
2019-08-21 08:43:53 +00:00
|
|
|
fuzzit_regression:
|
|
|
|
executor: fuzzit
|
|
|
|
working_directory: /go/src/github.com/prometheus/prometheus
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker
|
|
|
|
- run: ./fuzzit.sh local-regression
|
|
|
|
fuzzit_fuzzing:
|
|
|
|
executor: fuzzit
|
|
|
|
working_directory: /go/src/github.com/prometheus/prometheus
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker
|
|
|
|
- run: ./fuzzit.sh fuzzing
|
2018-04-21 05:35:53 +00:00
|
|
|
|
2019-04-11 12:31:04 +00:00
|
|
|
makefile_sync:
|
|
|
|
executor: golang
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: ./scripts/sync_makefiles.sh
|
|
|
|
|
2018-04-21 05:35:53 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
prometheus:
|
|
|
|
jobs:
|
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-08-21 08:43:53 +00:00
|
|
|
- fuzzit_regression:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-07-15 07:41:28 +00:00
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
2018-04-21 05:35:53 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-07-15 07:41:28 +00:00
|
|
|
- prometheus/publish_master:
|
2019-05-29 08:02:30 +00:00
|
|
|
context: org-context
|
2018-04-21 05:35:53 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
2019-07-15 07:41:28 +00:00
|
|
|
- prometheus/publish_release:
|
2019-05-29 08:02:30 +00:00
|
|
|
context: org-context
|
2018-04-21 05:35:53 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
2019-04-11 12:31:04 +00:00
|
|
|
nightly:
|
|
|
|
triggers:
|
|
|
|
- schedule:
|
|
|
|
cron: "0 0 * * *"
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
jobs:
|
2019-05-29 08:02:30 +00:00
|
|
|
- makefile_sync:
|
|
|
|
context: org-context
|
2019-08-21 08:43:53 +00:00
|
|
|
- fuzzit_fuzzing:
|
|
|
|
context: org-context
|