<commit_before>language: perl6

os:
  - linux
  - osx

perl6:
  - 2016.12
  - latest

before_install:
  - echo $TRAVIS_OS_NAME
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update           ; fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libgtk-3-dev ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx"   ]; then brew update                       ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx"   ]; then brew install gtk+3                ; fi

install:
  - rakudobrew build zef
  - zef --depsonly install .

script:
    - prove -v -e "perl6 -Ilib" t/ && zef install GTK::Scintilla<commit_msg>Support headless GUI testing<commit_after>language: perl6

os:
  - linux
  - osx

perl6:
  - 2016.12
  - latest

before_install:
  - echo $TRAVIS_OS_NAME
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update           ; fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libgtk-3-dev ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx"   ]; then brew update                       ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx"   ]; then brew install gtk+3                ; fi

install:
  - rakudobrew build zef
  - zef --depsonly install .

# Headless GUI Testing
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

script:
    - prove -v -e "perl6 -Ilib" t/ && zef install GTK::Scintilla
{'fraction_non_alphanumeric': 0.1365923795830338, 'fraction_numerical': 0.018691588785046728, 'mean_word_length': 2.185354691075515, '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': '6143650', 'n_tokens_mistral': 568, 'n_tokens_neox': 536, 'n_words': 142}