<commit_before>env:
  - GHCVER=7.4.2
  - GHCVER=7.6.3
  - GHCVER=7.8.2

before_install:
  - sudo add-apt-repository -y ppa:hvr/ghc
  - sudo apt-get update
  - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$PATH
  - which ghc
  - ghc --version
  - which ghci
  - ghci --version
  - which cabal
  - cabal --version

install:
  - cabal update
  - cabal install happy
  - export PATH=$HOME/.cabal/bin:$PATH
  - happy --version
  - cabal install --only-dependencies --enable-tests

script:
  - cabal configure --enable-tests
  - cabal build
  - cabal test
  - cabal check
  - cabal sdist
  # The following scriptlet checks that the resulting source distribution can be built & installed
  - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
    cd dist/;
    if [ -f "$SRC_TGZ" ]; then
      cabal install --enable-tests "$SRC_TGZ";
    else
      echo "expected '$SRC_TGZ' not found";
      exit 1;
    fi

matrix:<commit_msg>yet another workaround for #277.<commit_after>env:
  - GHCVER=7.4.2
  - GHCVER=7.6.3
  - GHCVER=7.8.2

before_install:
  - sudo add-apt-repository -y ppa:hvr/ghc
  - sudo apt-get update
  - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$PATH
  - which ghc
  - ghc --version
  - which ghci
  - ghci --version
  - which cabal
  - cabal --version

install:
  - cabal update
  - mkdir sandbox
  - (cd sandbox; cabal sandbox init; cabal install happy)
  - export PATH=$PWD/.cabal-sandbox/bin:$PATH
  - happy --version
  - cabal install --only-dependencies --enable-tests

script:
  - cabal configure --enable-tests
  - cabal build
  - cabal test
  - cabal check
  - cabal sdist
  # The following scriptlet checks that the resulting source distribution can be built & installed
  - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
    cd dist/;
    if [ -f "$SRC_TGZ" ]; then
      cabal install --enable-tests "$SRC_TGZ";
    else
      echo "expected '$SRC_TGZ' not found";
      exit 1;
    fi

matrix:
{'fraction_non_alphanumeric': 0.13173076923076923, 'fraction_numerical': 0.017788461538461538, 'mean_word_length': 2.4683333333333333, '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': '3158280', 'n_tokens_mistral': 812, 'n_tokens_neox': 774, 'n_words': 204}