<commit_before>version: 2

jobs:
  compile:
    docker:
      - image: ubuntu:20.04
        working_directory: ~/nnn
        environment:
          CI_FORCE_TEST: 1
    steps:
      - run:
          command: |
            apt update -qq
            DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get -y install tzdata
            apt install -y --no-install-recommends software-properties-common wget gpg-agent shellcheck
            apt install -y --no-install-recommends git make pkg-config libncurses-dev libreadline-dev
            apt install -y --no-install-recommends gcc-7 gcc-8 gcc-9 gcc-10
            apt install -y --no-install-recommends clang-6.0 clang-7 clang-8 clang-9 clang-10 clang-tidy-10
      - checkout
      - run:
          command: |
            export CFLAGS=-Werror
            make clean
            echo
            echo "########## gcc-7 ##########"
            CC=gcc-7 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-8 ##########"
            CC=gcc-8 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-9 ##########"
            CC=gcc-9 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-10 ##########"
            CC=gcc-10 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-6 ##########"
            CC=clang-6.0 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-7 ##########"
            CC=clang-7 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-8 ##########"
            CC=clang-8 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-9 ##########"
            CC=clang-9 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-10 ##########"
            CC=clang-10 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-tidy-10 ##########"
            clang-tidy-10 src/* -- -I/usr/include -I/usr/include/ncursesw
            echo "########## shellcheck ##########"
            find plugins/ -type f -not -name "*.md" -exec shellcheck -e SC1090,SC2230 {} +

  package-and-publish:
    machine: true
    working_directory: ~/nnn
    steps:
      - checkout<commit_msg>Add clang 11 to CI<commit_after>version: 2

jobs:
  compile:
    docker:
      - image: ubuntu:20.04
        working_directory: ~/nnn
        environment:
          CI_FORCE_TEST: 1
    steps:
      - run:
          command: |
            apt update -qq
            DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get -y install tzdata
            apt install -y --no-install-recommends software-properties-common wget gpg-agent shellcheck
            apt install -y --no-install-recommends git make pkg-config libncurses-dev libreadline-dev
            apt install -y --no-install-recommends gcc-7 gcc-8 gcc-9 gcc-10
            apt install -y --no-install-recommends clang-6.0 clang-7 clang-8 clang-9 clang-10 clang-11 clang-tidy-11
      - checkout
      - run:
          command: |
            export CFLAGS=-Werror
            make clean
            echo
            echo "########## gcc-7 ##########"
            CC=gcc-7 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-8 ##########"
            CC=gcc-8 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-9 ##########"
            CC=gcc-9 make strip
            ls -l nnn
            make clean
            echo
            echo "########## gcc-10 ##########"
            CC=gcc-10 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-6 ##########"
            CC=clang-6.0 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-7 ##########"
            CC=clang-7 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-8 ##########"
            CC=clang-8 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-9 ##########"
            CC=clang-9 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-10 ##########"
            CC=clang-10 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-11 ##########"
            CC=clang-11 make strip
            ls -l nnn
            make clean
            echo
            echo "########## clang-tidy-10 ##########"
            clang-tidy-11 src/* -- -I/usr/include -I/usr/include/ncursesw
            echo "########## shellcheck ##########"
            find plugins/ -type f -not -name "*.md" -exec shellcheck -e SC1090,SC2230 {} +

  package-and-publish:
    machine: true
    working_directory: ~/nnn
    steps:
      - checkout
{'fraction_non_alphanumeric': 0.15619596541786743, 'fraction_numerical': 0.022670509125840538, 'mean_word_length': 1.2352941176470589, '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': '3351676', 'n_tokens_mistral': 1591, 'n_tokens_neox': 1485, 'n_words': 399}