<commit_before># Test against different stack LTS versions.
env:
 - LTS=6.2  # Most recent GHC 7.10 LTS
 - LTS=2.22 # Last GHC 7.8 LTS

# Choose a lightweight base image; we provide our own build tools.
language: c

# Enable caching.
sudo: false

# Caching so the next build will be fast too.
cache:
  directories:
  - $HOME/.ghc
  - $HOME/.cabal
  - $HOME/.stack

before_install:
    # Download and unpack the stack executable
  - export PATH=$HOME/.local/bin:$PATH
  - mkdir -p ~/.local/bin
  - curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
    # Install zeromq3 -- the package is not supported yet on Travis whitelist... (06/06/2016)
  - travis_retry git clone http://www.github.com/zeromq/zeromq4-x.git libzmq
  - | export OLDPWD=$(pwd) 
      mkdir $HOME/zeromq
      cd libzmq
      travis_retry ./autogen.sh
      travis_retry ./configure --prefix=$HOME/zeromq
      make
      travis_retry make install
      travis_retry ldconfig
      cd $OLDPWD

addons:
  apt:
    packages:
      - libmagic-dev
      - libgmp-dev

install:
  - stack setup
  - stack build --dependencies-only --resolver=$LTS

script:
  - stack build --resolver=$LTS
  - stack test --resolver=$LTS<commit_msg>Travis fixes 1<commit_after># Test against different stack LTS versions.
env:
 - LTS=6.2  # Most recent GHC 7.10 LTS
 - LTS=2.22 # Last GHC 7.8 LTS

# Choose a lightweight base image; we provide our own build tools.
language: c

# Enable caching.
sudo: false

# Caching so the next build will be fast too.
cache:
  directories:
  - $HOME/.ghc
  - $HOME/.cabal
  - $HOME/.stack

before_install:
    # Download and unpack the stack executable
  - export PATH=$HOME/.local/bin:$PATH
  - mkdir -p ~/.local/bin
  - curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
    # Install zeromq3 -- the package is not supported yet on Travis whitelist... (06/06/2016)
  - travis_retry git clone http://www.github.com/zeromq/zeromq4-x.git libzmq
  - |
    export OLDPWD=$(pwd) 
    mkdir $HOME/zeromq
    cd libzmq
    travis_retry ./autogen.sh
    travis_retry ./configure --prefix=$HOME/zeromq
    make
    travis_retry make install
    travis_retry ldconfig
    cd $OLDPWD

addons:
  apt:
    packages:
      - libmagic-dev
      - libgmp-dev

install:
  - stack setup
  - stack build --dependencies-only --resolver=$LTS

script:
  - stack build --resolver=$LTS
  - stack test --resolver=$LTS
{'fraction_non_alphanumeric': 0.11788132218239745, 'fraction_numerical': 0.02031063321385902, 'mean_word_length': 2.6040172166427547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '443458', 'n_tokens_mistral': 936, 'n_tokens_neox': 898, 'n_words': 255}