<commit_before>language: cpp
compiler: 
  - gcc

branches:
  only:
   - master
   - dev_newarch
   
env:
  #- CC=gcc     CXX=g++
  #- CC=gcc-4.8 CXX=g++-4.8
  - CC=gcc-4.9 CXX=g++-4.9
  #- CC=gcc-5   CXX=g++-5
  #- CC=clang   CXX=clang++
   
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      #- gcc-4.8
      #- g++-4.8
      - gcc-4.9
      - g++-4.9
      - gcc-4.9-multilib 
      - g++-4.9-multilib
      #- gcc-5
      #- g++-5

before_install:
  - echo "before install"
  - arch
  - sudo ls /etc/dpkg/dpkg.cfg.d/
  - sudo sh -c "echo 'foreign-architecture i386' > /etc/dpkg/dpkg.cfg.d/multiarch"
  - sudo ls /etc/dpkg/dpkg.cfg.d/
#  - sudo dpkg --add-architecture i386
  - sudo apt-get update
  - sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386
  
# stackoverflow magic, didn't actually check why .. but works
  - sudo ln -s /usr/include/asm-generic /usr/include/asm
  
install:
  - echo "install"
  
script:
  - echo "script"
  - gcc --version
  - if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then TRAVIS_TAG=$(git tag --contains $TRAVIS_COMMIT); fi
  - echo $TRAVIS_TAG
  - make CC=gcc-4.9 CPP=g++-4.9
  - make CC=gcc-4.9 CPP=g++-4.9 DEBUG=true
  - export PLUGIN_COMP_CC=gcc-4.9
  - export PLUGIN_COMP_CXX=g++-4.9
  - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/censor && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/cod4x_b3hide && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/simplebanlist && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/example_cpp_plugin && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/pchat && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/sourcebansplugin && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/warn && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ..
  # - cd plugins/antispam && chmod +x makedll.sh && ./makedll.sh && cd ../..
  # missing: webapibanlist,   - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ../..
deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: <KEY>
  file: 
    - ./bin/cod4x18_dedrun
    - ./bin/cod4x18_dedrun_dbg<commit_msg>too tired for bash scripting?<commit_after>language: cpp
compiler: 
  - gcc

branches:
  only:
   - master
   - dev_newarch
   
env:
  #- CC=gcc     CXX=g++
  #- CC=gcc-4.8 CXX=g++-4.8
  - CC=gcc-4.9 CXX=g++-4.9
  #- CC=gcc-5   CXX=g++-5
  #- CC=clang   CXX=clang++
   
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      #- gcc-4.8
      #- g++-4.8
      - gcc-4.9
      - g++-4.9
      - gcc-4.9-multilib 
      - g++-4.9-multilib
      #- gcc-5
      #- g++-5

before_install:
  - echo "before install"
  - arch
  - sudo ls /etc/dpkg/dpkg.cfg.d/
  - sudo sh -c "echo 'foreign-architecture i386' > /etc/dpkg/dpkg.cfg.d/multiarch"
  - sudo ls /etc/dpkg/dpkg.cfg.d/
#  - sudo dpkg --add-architecture i386
  - sudo apt-get update
  - sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386
  
# stackoverflow magic, didn't actually check why .. but works
  - sudo ln -s /usr/include/asm-generic /usr/include/asm
  
install:
  - echo "install"
  
script:
  - echo "script"
  - gcc --version
  - if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then TRAVIS_TAG=$(git tag --contains $TRAVIS_COMMIT); fi
  - echo $TRAVIS_TAG
  - make CC=gcc-4.9 CPP=g++-4.9
  - make CC=gcc-4.9 CPP=g++-4.9 DEBUG=true
  - PLUGIN_COMP_CC=gcc-4.9
  - PLUGIN_COMP_CXX=g++-4.9
  - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/censor && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/cod4x_b3hide && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/simplebanlist && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/example_cpp_plugin && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/pchat && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/sourcebansplugin && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/warn && chmod +x makedll.sh && ./makedll.sh && cd ../..
  - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ..
  # - cd plugins/antispam && chmod +x makedll.sh && ./makedll.sh && cd ../..
  # missing: webapibanlist,   - cd plugins/screenshotsender && chmod +x makedll.sh && ./makedll.sh && cd ../..
deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: <KEY>
  file: 
    - ./bin/cod4x18_dedrun
    - ./bin/cod4x18_dedrun_dbg
{'fraction_non_alphanumeric': 0.18588082901554404, 'fraction_numerical': 0.02547495682210708, 'mean_word_length': 2.162457337883959, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6661730', 'n_tokens_mistral': 2062, 'n_tokens_neox': 1932, 'n_words': 393}