<commit_before>language: node_js
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.8
      - g++-4.8
env:
  - CXX=g++-4.8
before_install:
  - sudo apt-get update
  - sudo apt-get install libldns-dev libidn11-dev check libevent-dev unbound-anchor
  - mkdir -p openssl
  - export OPENSSL_PREFIX="$PWD/openssl"
  - curl -O https://www.openssl.org/source/openssl-1.0.2h.tar.gz
  - tar -xf openssl-1.0.2h.tar.gz
  - cd openssl-1.0.2h
  - ./config --prefix="$OPENSSL_PREFIX" --openssldir="${OPENSSL_PREFIX}/etc/ssl" --libdir=lib shared zlib-dynamic
  - make depend
  - make
  - make install
  - cd ..
  - mkdir -p unbound
  - export UNBOUND_PREFIX="$PWD/unbound"
  - curl -O https://www.unbound.net/downloads/unbound-1.6.8.tar.gz
  - tar -xf unbound-1.6.8.tar.gz
  - cd unbound-1.6.8
  - ./configure --prefix="$UNBOUND_PREFIX" --with-ssl="$OPENSSL_PREFIX"
  - make
  - make install
  - cd ..
  - curl -O https://getdnsapi.net/releases/getdns-1-3-0/getdns-1.3.0.tar.gz
  - tar -xf getdns-1.3.0.tar.gz
  - cd getdns-1.3.0
  - ./configure --with-ssl="$OPENSSL_PREFIX" --with-libunbound="$UNBOUND_PREFIX"
  - make
  - sudo make install
  - cd ..
  - sudo ldconfig
  - sudo mkdir -p /etc/unbound
  - sudo unbound-anchor -v -a "/etc/unbound/getdns-root.key" || [ -f /etc/unbound/getdns-root.key ]
node_js:
  - "6"
  - "8"<commit_msg>Follow unbound download redirects in travis tests<commit_after>language: node_js
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.8
      - g++-4.8
env:
  - CXX=g++-4.8
before_install:
  - sudo apt-get update
  - sudo apt-get install libldns-dev libidn11-dev check libevent-dev unbound-anchor
  - mkdir -p openssl
  - export OPENSSL_PREFIX="$PWD/openssl"
  - curl -O https://www.openssl.org/source/openssl-1.0.2h.tar.gz
  - tar -xf openssl-1.0.2h.tar.gz
  - cd openssl-1.0.2h
  - ./config --prefix="$OPENSSL_PREFIX" --openssldir="${OPENSSL_PREFIX}/etc/ssl" --libdir=lib shared zlib-dynamic
  - make depend
  - make
  - make install
  - cd ..
  - mkdir -p unbound
  - export UNBOUND_PREFIX="$PWD/unbound"
  - curl --location -O https://www.unbound.net/downloads/unbound-1.6.8.tar.gz
  - tar -xf unbound-1.6.8.tar.gz
  - cd unbound-1.6.8
  - ./configure --prefix="$UNBOUND_PREFIX" --with-ssl="$OPENSSL_PREFIX"
  - make
  - make install
  - cd ..
  - curl -O https://getdnsapi.net/releases/getdns-1-3-0/getdns-1.3.0.tar.gz
  - tar -xf getdns-1.3.0.tar.gz
  - cd getdns-1.3.0
  - ./configure --with-ssl="$OPENSSL_PREFIX" --with-libunbound="$UNBOUND_PREFIX"
  - make
  - sudo make install
  - cd ..
  - sudo ldconfig
  - sudo mkdir -p /etc/unbound
  - sudo unbound-anchor -v -a "/etc/unbound/getdns-root.key" || [ -f /etc/unbound/getdns-root.key ]
node_js:
  - "6"
  - "8"
{'fraction_non_alphanumeric': 0.17070524412296564, 'fraction_numerical': 0.028933092224231464, 'mean_word_length': 2.3405797101449277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6360555', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1153, 'n_words': 206}