<commit_before>language: java

jdk:
  - openjdk7

services:
  - rabbitmq

before_script:
   - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
   - sudo dpkg -i elasticsearch-1.0.1.deb
   - export PATH=$PATH:/usr/share/elasticsearch/bin
   - sudo mkdir -p /usr/share/elasticsearch/data
   - sudo chmod 777 /usr/share/elasticsearch/data
   - wget http://aphyr.com/riemann/riemann_0.2.2_all.deb
   - sudo dpkg -i riemann_0.2.2_all.deb
   - sudo touch /var/log/riemann/riemann.log
   - sudo chmod 666 /var/log/riemann/riemann.log
   - sudo test -d /dev/shm && sudo rm -rf /dev/shm
   - sudo ln -Tsf /{run,dev}/shm
   - sudo chmod 777 /dev/shm  # for celery worker
   - echo "### Starting HTTP server for serving agent package (for agent installer tests)"
   - python -m SimpleHTTPServer 8000 &

install:
   - rvm install ruby-2.1.0
   - rvm use ruby-2.1.0
   - rvm --default use ruby-2.1.0
   - gem install bundler
   - cd workflow-service; bundle install; cd ..
   - sudo pip install virtualenv
   - sudo pip install flake8

   - echo "### Creating agent package..."
   - mkdir -p package/linux
   - virtualenv package/linux/env
   - source package/linux/env/bin/activate
   - cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/agent-installer/worker_installer/tests/mock-sudo-plugin && pip install --process-dependency-links . && cd ../../../../..
   - tar czf agent.tar.gz package
   - rm -r package

   - virtualenv ~/env
   - source ~/env/bin/activate
   - pip install nose
   - cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
   - cd rest-service && pip install --process-dependency-links . && cd ..
   - cd tests && pip install --process-dependency-links . && cd ..

script:
   - flake8 plugins/agent-installer/
   - flake8 plugins/plugin-installer/
   - flake8 rest-service/
   - flake8 tests/

   - cd workflow-service
   - rake
   - cd ..

   - nosetests rest-service/manager_rest/test --nologcapture --nocapture
   - nosetests tests/workflow_tests --nologcapture --nocapture -v
   - nosetests plugins/plugin-installer/plugin_installer/tests --nologcapture --nocapture

   - echo "Defaults:travis  requiretty" | sudo tee -a /etc/sudoers
   - cd plugins/agent-installer
   - nosetests worker_installer.tests.test_configuration:CeleryWorkerConfigurationTest --nologcapture --nocapture
   - nosetests worker_installer.tests.test_worker_installer:TestLocalInstallerCase --nologcapture --nocapture
   - cd ..

notifications:
  hipchat: 60884046bb8dec459418f468ba68b9@cosmo
<commit_msg>CFY-517 travis workaround<commit_after>language: java

jdk:
  - openjdk7

services:
  - rabbitmq

before_script:
   - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
   - sudo dpkg -i elasticsearch-1.0.1.deb
   - export PATH=$PATH:/usr/share/elasticsearch/bin
   - sudo mkdir -p /usr/share/elasticsearch/data
   - sudo chmod 777 /usr/share/elasticsearch/data
   - wget http://aphyr.com/riemann/riemann_0.2.2_all.deb
   - sudo dpkg -i riemann_0.2.2_all.deb
   - sudo touch /var/log/riemann/riemann.log
   - sudo chmod 666 /var/log/riemann/riemann.log
   - sudo test -d /dev/shm && sudo rm -rf /dev/shm
   - sudo ln -Tsf /{run,dev}/shm
   - sudo chmod 777 /dev/shm  # for celery worker
   - echo "### Starting HTTP server for serving agent package (for agent installer tests)"
   - python -m SimpleHTTPServer 8000 &

install:
   - rvm install ruby-2.1.0
   - rvm use ruby-2.1.0
   - rvm --default use ruby-2.1.0
   - gem install bundler
   - cd workflow-service; bundle install; cd ..
   - sudo pip install virtualenv
   - sudo pip install flake8

   - echo "### Creating agent package..."
   - mkdir -p package/linux
   - virtualenv package/linux/env
   - source package/linux/env/bin/activate
   - cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/agent-installer/worker_installer/tests/mock-sudo-plugin && pip install --process-dependency-links . && cd ../../../../..
   - tar czf agent.tar.gz package
   - rm -r package

   - virtualenv ~/env
   - source ~/env/bin/activate
   - pip install nose
   - pip install --process-dependency-links https://github.com/cloudify-cosmo/cloudify-rest-client/archive/feature/CFY-517-use-command.zip
   - cd plugins/agent-installer && pip install --process-dependency-links . && cd ../..
   - cd plugins/plugin-installer && pip install --process-dependency-links . && cd ../..
   - cd rest-service && pip install --process-dependency-links . && cd ..
   - cd tests && pip install --process-dependency-links . && cd ..

script:
   - flake8 plugins/agent-installer/
   - flake8 plugins/plugin-installer/
   - flake8 rest-service/
   - flake8 tests/

   - cd workflow-service
   - rake
   - cd ..

   - nosetests rest-service/manager_rest/test --nologcapture --nocapture
   - nosetests tests/workflow_tests --nologcapture --nocapture -v
   - nosetests plugins/plugin-installer/plugin_installer/tests --nologcapture --nocapture

   - echo "Defaults:travis  requiretty" | sudo tee -a /etc/sudoers
   - cd plugins/agent-installer
   - nosetests worker_installer.tests.test_configuration:CeleryWorkerConfigurationTest --nologcapture --nocapture
   - nosetests worker_installer.tests.test_worker_installer:TestLocalInstallerCase --nologcapture --nocapture
   - cd ..

notifications:
  hipchat: 6<PASSWORD>

{'fraction_non_alphanumeric': 0.1315697266993693, 'fraction_numerical': 0.0189208128941836, 'mean_word_length': 2.6409438775510203, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5467163', 'n_tokens_mistral': 1997, 'n_tokens_neox': 1878, 'n_words': 430}