<commit_before>language: haxe

haxe:
  - "3.2.1"

env:
  - TARGET=flash
  - TARGET=neko
  - TARGET=cpp
  - TARGET=html5
  - TARGET=docs

sudo: false

before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x32 -extension GLX
  - export AUDIODEV=null

install:
  - git clone --recursive https://github.com/openfl/lime ~/lime --depth 1 > log.txt || cat log.txt
  - cd ~/lime
  - git reset --hard <PASSWORD>
  - haxelib dev lime ~/lime
  - haxelib install compiletime
  - haxelib install hxcpp > log.txt || cat log.txt
  - haxelib install format > log.txt || cat log.txt
  - if [[ $TARGET == 'docs' ]]; then git clone https://github.com/openfl/dox ~/dox --depth 1 > log.txt || cat log.txt ; fi
  - if [[ $TARGET == 'docs' ]]; then haxelib dev dox ~/dox ; fi
  - haxelib install mcover > log.txt || cat log.txt
  - haxelib install hamcrest > log.txt || cat log.txt
  - git clone https://github.com/jgranick/MassiveUnit ~/munit --depth 1 > log.txt || cat log.txt
  - haxelib dev munit ~/munit/src
  - haxelib dev openfl $(pwd)
  - cd ~/munit/tool
  - haxe build.hxml
  - if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -release -64 -nocffi > log.txt || cat log.txt; fi
  - if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -debug -64 -nocffi > log.txt || cat log.txt; fi
  - haxelib run lime rebuild tools -nocffi

before_script:
  - cd $TRAVIS_BUILD_DIR/tests/unit
  - haxelib run munit gen

script:
  #- haxelib run lime test neko
  #- haxelib run lime test neko -Ddisable-cffi
  - if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -nocffi ; fi
  - if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -Ddisable-cffi -nocffi ; fi
  - if [[ $TARGET == 'flash' ]]; then haxelib run munit test -as3 -norun -nocffi ; fi
  - if [[ $TARGET == 'html5' ]]; then haxelib run munit test -browser phantomjs -nocffi ; fi
  - if [[ $TARGET == 'cpp' ]]; then haxelib run lime test linux --window-hardware=false -debug ; fi
  - if [[ $TARGET == 'docs' ]]; then cd $TRAVIS_BUILD_DIR/docs && haxe build.hxml ; fi

  # Functional testing
  - if [[ $TARGET == 'neko' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_neko.hxml && neko tests.n ; fi
  - if [[ $TARGET == 'cpp' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_cpp.hxml && ./bin/FunctionalTest ; fi

notifications:
  slack: openfl:sBwVO0kgB7EuWLYzZzUezVIz

cache:
  directories:
    - $HOME/haxe/lib
<commit_msg>Update CI script<commit_after>language: haxe

haxe:
  - "3.2.1"

env:
  - TARGET=flash
  - TARGET=neko
  - TARGET=cpp
  - TARGET=html5
  - TARGET=docs

sudo: false

before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x32 -extension GLX
  - export AUDIODEV=null

install:
  - git clone --recursive https://github.com/openfl/lime ~/lime > log.txt || cat log.txt
  - cd ~/lime
  - git reset --hard <PASSWORD>
  - haxelib dev lime ~/lime
  - haxelib install compiletime
  - haxelib install hxcpp > log.txt || cat log.txt
  - haxelib install format > log.txt || cat log.txt
  - if [[ $TARGET == 'docs' ]]; then git clone https://github.com/openfl/dox ~/dox --depth 1 > log.txt || cat log.txt ; fi
  - if [[ $TARGET == 'docs' ]]; then haxelib dev dox ~/dox ; fi
  - haxelib install mcover > log.txt || cat log.txt
  - haxelib install hamcrest > log.txt || cat log.txt
  - git clone https://github.com/jgranick/MassiveUnit ~/munit --depth 1 > log.txt || cat log.txt
  - haxelib dev munit ~/munit/src
  - haxelib dev openfl $(pwd)
  - cd ~/munit/tool
  - haxe build.hxml
  - if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -release -64 -nocffi > log.txt || cat log.txt; fi
  - if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -debug -64 -nocffi > log.txt || cat log.txt; fi
  - haxelib run lime rebuild tools -nocffi

before_script:
  - cd $TRAVIS_BUILD_DIR/tests/unit
  - haxelib run munit gen

script:
  #- haxelib run lime test neko
  #- haxelib run lime test neko -Ddisable-cffi
  - if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -nocffi ; fi
  - if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -Ddisable-cffi -nocffi ; fi
  - if [[ $TARGET == 'flash' ]]; then haxelib run munit test -as3 -norun -nocffi ; fi
  - if [[ $TARGET == 'html5' ]]; then haxelib run munit test -browser phantomjs -nocffi ; fi
  - if [[ $TARGET == 'cpp' ]]; then haxelib run lime test linux --window-hardware=false -debug ; fi
  - if [[ $TARGET == 'docs' ]]; then cd $TRAVIS_BUILD_DIR/docs && haxe build.hxml ; fi

  # Functional testing
  - if [[ $TARGET == 'neko' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_neko.hxml && neko tests.n ; fi
  - if [[ $TARGET == 'cpp' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_cpp.hxml && ./bin/FunctionalTest ; fi

notifications:
  slack: openfl:sBwVO0kgB7EuWLYzZzUezVIz

cache:
  directories:
    - $HOME/haxe/lib

{'fraction_non_alphanumeric': 0.15555975080234094, 'fraction_numerical': 0.012271096847272041, 'mean_word_length': 2.8984547461368653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '3978418', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2085, 'n_words': 574}