"Fossies" - the Fresh Open Source Software Archive

Member "prometheus-2.15.2/.circleci/config.yml" (6 Jan 2020, 3260 Bytes) of package /linux/misc/prometheus-2.15.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.yml": 2.15.1_vs_2.15.2.

    1 ---
    2 version: 2.1
    3 
    4 orbs:
    5   prometheus: prometheus/prometheus@0.3.0
    6   go: circleci/go@0.2.0
    7   win: circleci/windows@2.3.0
    8 
    9 executors:
   10   # Whenever the Go version is updated here, .promu.yml
   11   # should also be updated.
   12   golang:
   13     docker:
   14     - image: circleci/golang:1.13-node
   15 
   16   fuzzit:
   17     docker:
   18       - image: fuzzitdev/golang:1.12.7-buster
   19 
   20 jobs:
   21   test:
   22     executor: golang
   23 
   24     steps:
   25     - prometheus/setup_environment
   26     - go/load-cache:
   27         key: v1
   28     - restore_cache:
   29         keys:
   30         - v1-npm-deps-{{ checksum "web/ui/react-app/yarn.lock" }}
   31         - v1-npm-deps-
   32     - run:
   33         command: make
   34         environment:
   35           # Run garbage collection more aggressively to avoid getting OOMed during the lint phase.
   36           GOGC: "20"
   37           # By default Go uses GOMAXPROCS but a Circle CI executor has many
   38           # cores (> 30) while the CPU and RAM resources are throttled. If we
   39           # don't limit this to the number of allocated cores, the job is
   40           # likely to get OOMed and killed.
   41           GOOPTS: "-p 2"
   42     - prometheus/check_proto
   43     - prometheus/store_artifact:
   44         file: prometheus
   45     - prometheus/store_artifact:
   46         file: promtool
   47     - go/save-cache:
   48         key: v1
   49     - save_cache:
   50         key: v1-npm-deps-{{ checksum "web/ui/react-app/yarn.lock" }}
   51         paths:
   52         - web/ui/react-app/node_modules
   53   test_windows:
   54     executor: win/default
   55     working_directory: /go/src/github.com/prometheus/prometheus
   56     steps:
   57     - checkout
   58     # TSDB is where the most risk is Windows wise, so only test there for now.
   59     - run: go test ./tsdb/...
   60   fuzzit_regression:
   61     executor: fuzzit
   62     working_directory: /go/src/github.com/prometheus/prometheus
   63     steps:
   64       - checkout
   65       - setup_remote_docker
   66       - run: ./fuzzit.sh local-regression
   67   fuzzit_fuzzing:
   68     executor: fuzzit
   69     working_directory: /go/src/github.com/prometheus/prometheus
   70     steps:
   71       - checkout
   72       - setup_remote_docker
   73       - run: ./fuzzit.sh fuzzing
   74 
   75   makefile_sync:
   76     executor: golang
   77     steps:
   78     - checkout
   79     - run: ./scripts/sync_makefiles.sh
   80 
   81 workflows:
   82   version: 2
   83   prometheus:
   84     jobs:
   85     - test:
   86         filters:
   87           tags:
   88             only: /.*/
   89     - test_windows:
   90         filters:
   91           tags:
   92             only: /.*/
   93     - fuzzit_regression:
   94         filters:
   95           tags:
   96             only: /.*/
   97     - prometheus/build:
   98         name: build
   99         filters:
  100           tags:
  101             only: /.*/
  102     - prometheus/publish_master:
  103         context: org-context
  104         requires:
  105         - test
  106         - build
  107         filters:
  108           branches:
  109             only: master
  110         image: circleci/golang:1-node
  111     - prometheus/publish_release:
  112         context: org-context
  113         requires:
  114         - test
  115         - build
  116         filters:
  117           tags:
  118             only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
  119           branches:
  120             ignore: /.*/
  121         image: circleci/golang:1-node
  122   nightly:
  123     triggers:
  124       - schedule:
  125           cron: "0 0 * * *"
  126           filters:
  127             branches:
  128               only:
  129                 - master
  130     jobs:
  131     - makefile_sync:
  132         context: org-context
  133     - fuzzit_fuzzing:
  134         context: org-context