<commit_before>sudo: false

language: c

env:
  - GHCVER=7.8.4
  - GHCVER=7.10.2

addons:
  apt:
    sources:
      - hvr-ghc
    packages:
      - ghc-7.8.4
      - ghc-7.10.2
      - cabal-install-1.22

before_install:
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
  - (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
  - ghc --version
  - cabal --version
  - travis_retry cabal update
  - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config

install:
  - tinc

script:
  - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test

before_deploy:
  - mkdir -p build
  - cp dist/build/tinc/tinc build

deploy:
  provider: s3
  access_key_id: <KEY>
  secret_access_key:
    secure: "<KEY>
  bucket: zalora-public
  local_dir: build
  skip_cleanup: true
  acl: public_read
  on:
    condition: $GHCVER = 7.10.2

cache:
  directories:
    - $HOME/.tinc/cache
<commit_msg>Output tinc version on travis<commit_after>sudo: false

language: c

env:
  - GHCVER=7.8.4
  - GHCVER=7.10.2

addons:
  apt:
    sources:
      - hvr-ghc
    packages:
      - ghc-7.8.4
      - ghc-7.10.2
      - cabal-install-1.22

before_install:
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
  - (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
  - ghc --version
  - cabal --version
  - tinc --version
  - travis_retry cabal update
  - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config

install:
  - tinc

script:
  - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test

before_deploy:
  - mkdir -p build
  - cp dist/build/tinc/tinc build

deploy:
  provider: s3
  access_key_id: <KEY>
  secret_access_key:
    secure: "<KEY>
  bucket: zalora-public
  local_dir: build
  skip_cleanup: true
  acl: public_read
  on:
    condition: $GHCVER = 7.10.2

cache:
  directories:
    - $HOME/.tinc/cache

{'fraction_non_alphanumeric': 0.15288220551378445, 'fraction_numerical': 0.02606516290726817, 'mean_word_length': 2.423670668953688, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6555458', 'n_tokens_mistral': 862, 'n_tokens_neox': 829, 'n_words': 168}