<commit_before>version: 2

templates:
  golang-template: &golang-template
    docker:
      - image: circleci/golang:1.12
    working_directory: /go/src/github.com/u-root/u-root
    environment:
      - CGO_ENABLED: 0
  integration-template: &integration-template
    working_directory: /go/src/github.com/u-root/u-root
    environment:
      - CGO_ENABLED: 0
    steps:
      - checkout
      - run:
          name: Test integration
          command: go test -v -a -ldflags '-s' ./integration/...
      - run:
          name: Copying serial output to /tmp/serial
          command: cp -R integration/serial /tmp/serial
      - store_artifacts:
          path: /tmp/serial

workflows:
  version: 2
  build_and_test:
    jobs:
      - clean-code
      - test:
          requires:
            - clean-code
      - test-integration-amd64:
          requires:
            - clean-code
      - test-integration-arm:
          requires:
            - clean-code
      - race:
          requires:
            - clean-code
      - compile_cmds:
          requires:
            - clean-code
      - check_licenses:
          requires:
            - clean-code
jobs:
  clean-code:<commit_msg>circleci: only print logs for failing tests<commit_after>version: 2

templates:
  golang-template: &golang-template
    docker:
      - image: circleci/golang:1.12
    working_directory: /go/src/github.com/u-root/u-root
    environment:
      - CGO_ENABLED: 0
  integration-template: &integration-template
    working_directory: /go/src/github.com/u-root/u-root
    environment:
      - CGO_ENABLED: 0
    steps:
      - checkout
      - run:
          name: Test integration
          command: go test -a -ldflags '-s' ./integration/...
      - run:
          name: Copying serial output to /tmp/serial
          command: cp -R integration/serial /tmp/serial
      - store_artifacts:
          path: /tmp/serial

workflows:
  version: 2
  build_and_test:
    jobs:
      - clean-code
      - test:
          requires:
            - clean-code
      - test-integration-amd64:
          requires:
            - clean-code
      - test-integration-arm:
          requires:
            - clean-code
      - race:
          requires:
            - clean-code
      - compile_cmds:
          requires:
            - clean-code
      - check_licenses:
          requires:
            - clean-code
jobs:
  clean-code:
{'fraction_non_alphanumeric': 0.09945674885081487, 'fraction_numerical': 0.007521938988717091, 'mean_word_length': 1.5226554267650159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4782055', 'n_tokens_mistral': 745, 'n_tokens_neox': 716, 'n_words': 154}