<commit_before>---
version: 2

jobs:
  test:
    docker:
    - image: circleci/golang:1.11
    working_directory: /go/src/github.com/prometheus/promu

    steps:
    - checkout
    - run: make promu
    - run: make check_license style vet unused staticcheck build
    - run: rm -v promu

  build:
    machine: true
    working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/promu

    steps:
    - checkout
    - run: make promu
    - run: promu crossbuild -v
    - persist_to_workspace:
        root: .
        paths:
        - .build

  release_tags:
    docker:
    - image: circleci/golang:1.11
    working_directory: /go/src/github.com/prometheus/promu

    steps:
    - checkout
    - run: mkdir -v -p ${HOME}/bin
    - run: curl -L 'https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2' | tar xvjf - --strip-components 3 -C ${HOME}/bin
    - run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
    - run: make promu
    - run: promu crossbuild tarballs
    - run: promu checksum .tarballs
    - run: promu release .tarballs
    - store_artifacts:<commit_msg>circleci: fix config to make the tarballs upload on github works<commit_after>---
version: 2.1

executors:
  # Whenever the Go version is updated here, .travis.yml and .promu.yml
  # should also be updated.
  golang:
    docker:
    - image: circleci/golang:1.11
    working_directory: /go/src/github.com/prometheus/promu

jobs:
  test:
    executor: golang

    steps:
    - checkout
    - run: make promu
    - run: make check_license style vet unused staticcheck build
    - store_artifacts:
        path: promu
        destination: /build/promu
    - run: rm -v promu

  build:
    machine: true
    working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/promu

    steps:
    - checkout
    - run: make promu
    - run: promu crossbuild -v
    - persist_to_workspace:
        root: .
        paths:
        - .build
    - store_artifacts:
        path: .build
        destination: /build

  release_tags:
    docker:
    - image: circleci/golang:1.11
    working_directory: /go/src/github.com/prometheus/promu

    steps:
    - checkout
    - run: mkdir -v -p ${HOME}/bin
    - run: curl -L 'https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2' | tar xvjf - --strip-components 3 -C ${HOME}/bin
    - run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
    - attach_workspace:
        at: .
    - run: make promu
    - run: promu crossbuild tarballs
    - run: promu checksum .tarballs
    - run: promu release .tarballs
    - store_artifacts:
{'fraction_non_alphanumeric': 0.1192177510342234, 'fraction_numerical': 0.010906355772846935, 'mean_word_length': 2.292079207920792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5680179', 'n_tokens_mistral': 969, 'n_tokens_neox': 902, 'n_words': 217}