<commit_before>os:
    - linux
cache:
    directories:
        - precompiled
        - html
        - highlights/node_modules
        - $HOME/.rakudobrew
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
      - graphviz
      - g++-4.8
      - ruby-sass

fast_finish: true

branches:
  except:
    - gh-pages
notifications:
  irc:
    channels:
    - "irc.freenode.net#perl6"
    on_success: change
    on_failure: always
    template:
      - "Doc build %{result}. %{author} '%{commit_message}'"
      - "%{build_url} %{compare_url}"

before_install:
  - nvm install 7.2.1
  - nvm use 7.2.1
  - sudo apt install zstd
  - wget http://whateverable.6lang.org/HEAD && zstd -dqc -- HEAD | tar x --absolute-names
  - export PATH="$PATH:/$HOME/.rakudobrew/moar-master/install/share/perl6/site/bin"
  - git clone https://github.com/ugexe/zef.git && cd zef && perl6 -Ilib bin/zef install .
  
install:
  - travis_retry zef --/tap-harness --force --/test install LWP::Simple
  - travis_retry zef --/tap-harness --depsonly install .

script:
  - make test
  - export CXX=$(command -v g++-4.8 >/dev/null 2>&1; if [ $? -eq 1 ]; then printf "g++"; else printf "g++-4.8"; fi)
  - $CXX --version
  - make html-nohighlight
#  - make html
matrix:
  allow_failures:
    - os: osx<commit_msg>Test with travis<commit_after>os:
    - linux
cache:
    directories:
        - precompiled
        - html
        - highlights/node_modules
        - $HOME/.rakudobrew
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
      - graphviz
      - g++-4.8
      - ruby-sass

fast_finish: true
services: docker

branches:
  except:
    - gh-pages
notifications:
  irc:
    channels:
    - "irc.freenode.net#perl6"
    on_success: change
    on_failure: always
    template:
      - "Doc build %{result}. %{author} '%{commit_message}'"
      - "%{build_url} %{compare_url}"

before_install:
  - nvm install 7.2.1
  - nvm use 7.2.1
  
install:
  - docker run -t -v  $TRAVIS_BUILD_DIR:/test  --entrypoint="/bin/sh" jjmerelo/test-perl6  -c zef install --deps-only .
  - docker run -t -v  $TRAVIS_BUILD_DIR:/test  --entrypoint="/bin/sh" jjmerelo/test-perl6  -c zef install LWP::Simple

script:
  - docker run -t -v  $TRAVIS_BUILD_DIR:/test jjmerelo/test-perl6
  - export CXX=$(command -v g++-4.8 >/dev/null 2>&1; if [ $? -eq 1 ]; then printf "g++"; else printf "g++-4.8"; fi)
  - $CXX --version
  - make html-nohighlight
#  - make html
matrix:
  allow_failures:
    - os: osx
{'fraction_non_alphanumeric': 0.14941602899718082, 'fraction_numerical': 0.015304067660088603, 'mean_word_length': 2.2770448548812663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '6287085', 'n_tokens_mistral': 999, 'n_tokens_neox': 948, 'n_words': 212}