<commit_before>language: php

os:
  - linux

env:
  matrix:
  - TARGET=swf #removed SWF for now
  - TARGET=php
  - TARGET=js
  - TARGET=neko
  - TARGET=java
  - TARGET=cpp
  - TARGET=cs

matrix:
  fast_finish: true

# Install Haxe and dependencies before running the test.
before_script:
  - git submodule update --init --recursive            # update utest
  - sudo add-apt-repository ppa:eyecreate/haxe -y      # add the ubuntu ppa that contains haxe
  - sudo apt-get update                                # pull info from ppa
  - sudo apt-get install haxe -y                       # install haxe (and neko)
  - mkdir ~/haxelib                                    # create a folder for installing haxelib
  - haxelib setup ~/haxelib
  - haxelib install utest                              # dependency
  - mkdir -p ./bin
  - sh -c "if [ '$TARGET' = 'cpp' ]; then sudo apt-get install gcc-multilib g++-multilib -y; fi"
  - sh -c "if [ '$TARGET' = 'cpp' ]; then haxelib install hxcpp; fi"
  - sh -c "if [ '$TARGET' = 'cs' ]; then sudo apt-get install mono-gmcs; fi"
  - sh -c "if [ '$TARGET' = 'cs' ]; then haxelib install hxcs; fi"
  - sh -c "if [ '$TARGET' = 'java' ]; then haxelib install hxjava; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.i386.tar.gz; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then tar xvzf flashplayer_11_sa_debug.i386.tar.gz; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then chmod +x flashplayerdebugger; fi"
  #- sh -c "if [ '$TARGET' = 'swf' ]; then sh -e /etc/init.d/xvfb start; fi"

# Run the test!
script:
  - haxe hxml/thx.core.${TARGET}.hxml
  - sh -c "if [ '$TARGET' = 'swf' ]; then ls -la; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then xvfb-run -a ./flashplayerdebugger \"./bin/test.swf\"; fi"
  #- sh -c "if [ '$TARGET' = 'swf' ]; then xvfb-run -a ./flashplayerdebugger ./bin/test.swf; fi"

branches:
  only:
    - master<commit_msg>travis<commit_after>language: php

os:
  - linux

env:
  matrix:
  - TARGET=swf #removed SWF for now
  - TARGET=php
  - TARGET=js
  - TARGET=neko
  - TARGET=java
  - TARGET=cpp
  - TARGET=cs

matrix:
  fast_finish: true

# Install Haxe and dependencies before running the test.
before_install:
  - git submodule update --init --recursive
  - sudo add-apt-repository ppa:eyecreate/haxe -y      # add the ubuntu ppa that contains haxe
  - sudo apt-get update                                # pull info from ppa
  - sudo apt-get install haxe -y                       # install haxe (and neko)
  - mkdir ~/haxelib                                    # create a folder for installing haxelib
  - haxelib setup ~/haxelib
  - haxelib install utest                              # dependency
  - mkdir -p ./bin
before_script:
  - sh -c "if [ '$TARGET' = 'cpp' ]; then sudo apt-get install gcc-multilib g++-multilib -y; fi"
  - sh -c "if [ '$TARGET' = 'cpp' ]; then haxelib install hxcpp; fi"
  - sh -c "if [ '$TARGET' = 'cs' ]; then sudo apt-get install mono-gmcs; fi"
  - sh -c "if [ '$TARGET' = 'cs' ]; then haxelib install hxcs; fi"
  - sh -c "if [ '$TARGET' = 'java' ]; then haxelib install hxjava; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.i386.tar.gz; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then tar xvzf flashplayer_11_sa_debug.i386.tar.gz; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then sudo cp flashplayerdebugger /usr/bin/; fi"
  #- sh -c "if [ '$TARGET' = 'swf' ]; then chmod +x flashplayerdebugger; fi"
  #- sh -c "if [ '$TARGET' = 'swf' ]; then sh -e /etc/init.d/xvfb start; fi"

# Run the test!
script:
  - haxe hxml/thx.core.${TARGET}.hxml
  - sh -c "if [ '$TARGET' = 'swf' ]; then ls -la; fi"
  - sh -c "if [ '$TARGET' = 'swf' ]; then xvfb-run -a flashplayerdebugger \"./bin/test.swf\"; fi"
  #- sh -c "if [ '$TARGET' = 'swf' ]; then xvfb-run -a ./flashplayerdebugger ./bin/test.swf; fi"

branches:
  only:
    - master
{'fraction_non_alphanumeric': 0.15403976843694941, 'fraction_numerical': 0.006040775232821546, 'mean_word_length': 2.2734761120263594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2671640', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1505, 'n_words': 439}