<commit_before>sudo: required
dist: trusty
services:
  - docker

matrix:
  include:
    # Linux builds use the `rust-slave-dist` image so we link them against a
    # "super old glibc" to ensure that it runs on as many platforms as possible.
    - os: linux
      env: TARGET=i686-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
    - os: linux
      env: TARGET=x86_64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-dist:2015-10-20b

    # Cross builds happen in the `rust-slave-linux-cross` image to ensure that
    # we use the right cross compilers for these targets. That image should
    # bundle all the gcc cross compilers to enable us to build OpenSSL
    - os: linux
      env: TARGET=arm-unknown-linux-gnueabi
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=arm-unknown-linux-gnueabihf
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=armv7-unknown-linux-gnueabihf
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=aarch64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-unknown-freebsd
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-unknown-netbsd
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc64le-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mipsel-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips64-unknown-linux-gnuabi64
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips64el-unknown-linux-gnuabi64
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=s390x-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1

    # Android use a local docker image
    - os: linux
      env: TARGET=arm-linux-androideabi
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=armv7-linux-androideabi
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=aarch64-linux-android
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=i686-linux-android
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-linux-android
           DOCKER=android
           SKIP_TESTS=1

    # On OSX we want to target 10.7 so we ensure that the appropriate
    # environment variable is set to tell the linker what we want.
    - os: osx
      env: TARGET=i686-apple-darwin
           MACOSX_DEPLOYMENT_TARGET=10.7
    - os: osx
      env: TARGET=x86_64-apple-darwin
           MACOSX_DEPLOYMENT_TARGET=10.7

cache:
  # We're going to download things we don't necessarily want to cache into the `target` directory, so
  # don't use travis's native `cargo` caching, which just grabs the whole folder.
  directories:
    - target/$TARGET/openssl/openssl-install
    - target/$TARGET/release
    - target/release/deps

branches:
  only:
    - master
    - stable
    - auto

notifications:
  webhooks: http://buildbot.rust-lang.org/homu/travis

install:
  - sudo pip install awscli
  - aws configure set preview.cloudfront true
  - curl https://static.rust-lang.org/rustup.sh |
    sh -s -- --prefix=$HOME/rust --spec=nightly-2017-04-25 --with-target=$TARGET

script:
  - mkdir -p target/$TARGET
  - if [ ! -z "$DOCKER" ]; then
      sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
    else
      PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
    fi
  # Install kcov dependencies
  # FIXME: busted!
  #- if [ "$TARGET" == "x86_64-unknown-linux-gnu" ]; then
  #    wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz;
  #    tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make;
  #    sudo make install && cd ../..;<commit_msg>Auto merge of #1155 - brson:nocache, r=alexcrichton<commit_after>sudo: required
dist: trusty
services:
  - docker

matrix:
  include:
    # Linux builds use the `rust-slave-dist` image so we link them against a
    # "super old glibc" to ensure that it runs on as many platforms as possible.
    - os: linux
      env: TARGET=i686-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
    - os: linux
      env: TARGET=x86_64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-dist:2015-10-20b

    # Cross builds happen in the `rust-slave-linux-cross` image to ensure that
    # we use the right cross compilers for these targets. That image should
    # bundle all the gcc cross compilers to enable us to build OpenSSL
    - os: linux
      env: TARGET=arm-unknown-linux-gnueabi
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=arm-unknown-linux-gnueabihf
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=armv7-unknown-linux-gnueabihf
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=aarch64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-unknown-freebsd
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-unknown-netbsd
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc64-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=powerpc64le-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mipsel-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips64-unknown-linux-gnuabi64
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=mips64el-unknown-linux-gnuabi64
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1
    - os: linux
      env: TARGET=s390x-unknown-linux-gnu
           DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
           SKIP_TESTS=1

    # Android use a local docker image
    - os: linux
      env: TARGET=arm-linux-androideabi
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=armv7-linux-androideabi
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=aarch64-linux-android
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=i686-linux-android
           DOCKER=android
           SKIP_TESTS=1
    - os: linux
      env: TARGET=x86_64-linux-android
           DOCKER=android
           SKIP_TESTS=1

    # On OSX we want to target 10.7 so we ensure that the appropriate
    # environment variable is set to tell the linker what we want.
    - os: osx
      env: TARGET=i686-apple-darwin
           MACOSX_DEPLOYMENT_TARGET=10.7
    - os: osx
      env: TARGET=x86_64-apple-darwin
           MACOSX_DEPLOYMENT_TARGET=10.7

cache:
  # We're going to download things we don't necessarily want to cache into the `target` directory, so
  # don't use travis's native `cargo` caching, which just grabs the whole folder.
  directories:
    - target/$TARGET/openssl/openssl-install
    - target/release/deps

branches:
  only:
    - master
    - stable
    - auto

notifications:
  webhooks: http://buildbot.rust-lang.org/homu/travis

install:
  - sudo pip install awscli
  - aws configure set preview.cloudfront true
  - curl https://static.rust-lang.org/rustup.sh |
    sh -s -- --prefix=$HOME/rust --spec=nightly-2017-04-25 --with-target=$TARGET

script:
  - mkdir -p target/$TARGET
  - if [ ! -z "$DOCKER" ]; then
      sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
    else
      PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
    fi
  # Install kcov dependencies
  # FIXME: busted!
  #- if [ "$TARGET" == "x86_64-unknown-linux-gnu" ]; then
  #    wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz;
  #    tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make;
  #    sudo make install && cd ../..;
{'fraction_non_alphanumeric': 0.10465235698880558, 'fraction_numerical': 0.045188456403409676, 'mean_word_length': 2.2514190317195326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1240557', 'n_tokens_mistral': 3743, 'n_tokens_neox': 3418, 'n_words': 668}