<commit_before>sudo: required

dist: trusty

language: cpp

services: 
  - mysql

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6

compiler: gcc

install:
  - mysql -u root -e 'create database Halite;'
  - phpenv global 5.6
 
  - cd ~/build/HaliteChallenge/Halite/website
  - ./install.sh

  - cd ~/build/HaliteChallenge/Halite/tests
  - sudo ./install.sh

  - cp travisTests.ini tests.ini


script:
  - cd ~/build/HaliteChallenge/Halite/airesources/Java
  - javac MyBot.java

  - cd ../C++
  - g++ -std=c++11 MyBot.cpp -o MyBot.o

  - cd ~/build/HaliteChallenge/Halite/environment
  - make
  - ./environment -d 10 10 "python3 ../airesources/Python/MyBot.py" "cd ../airesources/Java; java MyBot" "../airesources/C++/MyBot.o"

  - cd ~/build/HaliteChallenge/Halite/tests/
  - sudo ./runTests.sh


notifications:
    slack: halite:HnrNM3effc9q8ZVvT7PqsSYC
<commit_msg>Switch from HipHop compiler<commit_after>sudo: required

dist: trusty

language: cpp

services: 
  - mysql

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6

compiler: gcc

install:
  - mysql -u root -e 'create database Halite;'
 
  - cd ~/build/HaliteChallenge/Halite/website
  - ./install.sh

  - phpenv global 5.6

  - cd ~/build/HaliteChallenge/Halite/tests
  - sudo ./install.sh

  - cp travisTests.ini tests.ini


script:
  - cd ~/build/HaliteChallenge/Halite/airesources/Java
  - javac MyBot.java

  - cd ../C++
  - g++ -std=c++11 MyBot.cpp -o MyBot.o

  - cd ~/build/HaliteChallenge/Halite/environment
  - make
  - ./environment -d 10 10 "python3 ../airesources/Python/MyBot.py" "cd ../airesources/Java; java MyBot" "../airesources/C++/MyBot.o"

  - cd ~/build/HaliteChallenge/Halite/tests/
  - sudo ./runTests.sh


notifications:
    slack: halite:HnrNM3effc9q8ZVvT7PqsSYC

{'fraction_non_alphanumeric': 0.14324178782983307, 'fraction_numerical': 0.02046311254711901, 'mean_word_length': 2.579961464354528, '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': '2162612', 'n_tokens_mistral': 790, 'n_tokens_neox': 724, 'n_words': 143}