<commit_before>language: objective-c # test mac os builds 

env:
  global:
    - OS=mac
      # SAUCE_ACCESS_KEY
    - secure: "<KEY>
      # SAUCE_USERNAME
    - secure: "<KEY>
  matrix:
    - TARGET=neko macro FILENAME=unit.n # run both on same instance
    - TARGET=js FILENAME=unit.js TOOLCHAIN=default browser NODECMD="var unit = require('./unit.js').unit; unit.Test.main(); if (unit.Test.success) process.exit(0); else process.exit(1);" SAUCE_BROWSERS=sauce-browsers-example.json
      #- TARGET=php
      #- TARGET=cpp
      #- TARGET=flash9 FILENAME=unit9.swf
      #- TARGET=as3 PATH=$PATH:$HOME/flex_sdk_4/bin
      #- TARGET=java
      #- TARGET=cs
      #- TARGET=flash8 FILENAME=unit8.swf

matrix:
  fast_finish: true
  allow_failures:
    - env: TARGET=flash8

install:
  - travis_retry git clone https://github.com/HaxeFoundation/haxe.git ~/haxegit
  - $TRAVIS_BUILD_DIR/setup.sh

script:
  - cd ~/haxegit/tests/unit
  - haxe compile-$TARGET.hxml
  - $TRAVIS_BUILD_DIR/runtests.sh $FILENAME<commit_msg>run both toolchains<commit_after>language: objective-c # test mac os builds 

env:
  global:
    - OS=mac
      # SAUCE_ACCESS_KEY
    - secure: "<KEY>
      # SAUCE_USERNAME
    - secure: "<KEY>
  matrix:
    - TARGET=neko macro FILENAME=unit.n # run both on same instance
    - TARGET=js FILENAME=unit.js TOOLCHAIN="default browser" NODECMD="var unit = require('./unit.js').unit; unit.Test.main(); if (unit.Test.success) process.exit(0); else process.exit(1);" SAUCE_BROWSERS=sauce-browsers-example.json
      #- TARGET=php
      #- TARGET=cpp
      #- TARGET=flash9 FILENAME=unit9.swf
      #- TARGET=as3 PATH=$PATH:$HOME/flex_sdk_4/bin
      #- TARGET=java
      #- TARGET=cs
      #- TARGET=flash8 FILENAME=unit8.swf

matrix:
  fast_finish: true
  allow_failures:
    - env: TARGET=flash8

install:
  - travis_retry git clone https://github.com/HaxeFoundation/haxe.git ~/haxegit
  - $TRAVIS_BUILD_DIR/setup.sh

script:
  - cd ~/haxegit/tests/unit
  - haxe compile-$TARGET.hxml
  - $TRAVIS_BUILD_DIR/runtests.sh $FILENAME
{'fraction_non_alphanumeric': 0.13222331047992164, 'fraction_numerical': 0.00881488736532811, 'mean_word_length': 3.1440162271805274, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '283369', 'n_tokens_mistral': 810, 'n_tokens_neox': 784, 'n_words': 137}