<commit_before>variables:
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"

before_script:
 - |
    apt-get update -qq &&
    apt-get install -qq \
        build-essential \
        curl \
        dosfstools \
        fuse \
        genisoimage \
        git \
        gnupg \
        libfuse-dev \
        nasm \
        pkg-config \
        software-properties-common \
        syslinux \
        syslinux-utils \
        wget &&
    apt-key adv -q --batch --yes --keyserver <EMAIL> --recv-keys <KEY> &&
    add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
    apt-get update -qq &&
    apt-get purge -qq binutils-doc &&
    apt-get install -qq x86-64-unknown-redox-gcc &&
    curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

img:
    script:
     - |
        source "$HOME/.cargo/env" &&
        rustup update &&
        rustup component add rust-src &&
        cargo install cargo-config xargo &&
        pushd bootloader-efi &&
        rustup update &&
        rustup component add rust-src &&
        mkdir -p "$HOME/.rustup/toolchains/nightly-2017-11-29-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin" &&
        popd &&
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME<commit_msg>Add artifacts<commit_after>variables:
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"

before_script:
 - |
    apt-get update -qq &&
    apt-get install -qq \
        build-essential \
        curl \
        dosfstools \
        fuse \
        genisoimage \
        git \
        gnupg \
        libfuse-dev \
        nasm \
        pkg-config \
        software-properties-common \
        syslinux \
        syslinux-utils \
        wget &&
    apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys <KEY> &&
    add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
    apt-get update -qq &&
    apt-get purge -qq binutils-doc &&
    apt-get install -qq x86-64-unknown-redox-gcc &&
    curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

img:
    script:
     - |
        source "$HOME/.cargo/env" &&
        rustup update &&
        rustup component add rust-src &&
        cargo install cargo-config xargo &&
        pushd bootloader-efi &&
        rustup update &&
        rustup component add rust-src &&
        mkdir -p "$HOME/.rustup/toolchains/nightly-2017-11-29-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin" &&
        popd &&
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
    artifacts:
        paths:
         - build/img/
        expire_in: 1 week
{'fraction_non_alphanumeric': 0.12607879924953097, 'fraction_numerical': 0.015384615384615385, 'mean_word_length': 1.74562306900103, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '53899', 'n_tokens_mistral': 947, 'n_tokens_neox': 902, 'n_words': 182}