<commit_before>env:
 global:
  - CABALVER=1.20
 matrix:
  - GHCVER=7.0.4
  - GHCVER=7.2.2
  - GHCVER=7.4.2
  - GHCVER=7.6.3
  - GHCVER=7.8.3
  - GHCVER=head

matrix:
 allow_failures:
  - env: GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq
 - sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
 - export PATH="/opt/ghc/$GHCVER/bin:$PATH"

install:
 - cabal-$CABALVER update
 - ghc --version
 - ghc-pkg list

script:
 - cabal-$CABALVER install --enable-documentation
 - cabal-$CABALVER sdist
 - ghc-pkg list<commit_msg>Rearranged Travis CI configuration. Use Cabal head with GHC 7.8.3/head.<commit_after>env:
 - CABALVER=1.20 GHCVER=7.0.4
 - CABALVER=1.20 GHCVER=7.2.2
 - CABALVER=1.20 GHCVER=7.4.2
 - CABALVER=1.20 GHCVER=7.6.3
 - CABALVER=1.20 GHCVER=7.8.3
 - CABALVER=head GHCVER=7.8.3
 - CABALVER=head GHCVER=head

matrix:
 allow_failures:
  - env: CABALVER=head GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq

install:
 - sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
 - export PATH="/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH"

before_script:
 - cabal --version
 - cabal update
 - ghc --version
 - ghc-pkg list

script:
 - cabal install --enable-documentation
 - cabal sdist

after_script:
 - ghc-pkg list
{'fraction_non_alphanumeric': 0.14423791821561338, 'fraction_numerical': 0.04014869888475837, 'mean_word_length': 3.0787878787878786, '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': '2162903', 'n_tokens_mistral': 612, 'n_tokens_neox': 579, 'n_words': 110}