<commit_before>language: javascript

before_install:
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
  - "# npm cache clean -f"
  - "nvm install 4.2.2"
  - "nvm use 4.2.2"
  - "npm version"
  - "npm install -g npm@3.4.0"
  - "npm version"
  - "which npm"

# command to install dependencies
install:
  - "# rm -rf node_modules/"
  - "./install.sh"
  - "sudo pip install selenium"
  - "sudo pip install behave"
  - "sudo pip install jsonpath-rw"

before_script:
  - "export DISPLAY=:99.0"
  - "./start-server.sh &"
  - "sleep 25"

after_success:
  - "cat ./webdriver.log"
  - "cat ../../start-server.log"

after_failure:
  - "cat ./webdriver.log"
  - "cat ../../start-server.log"

# command to run tests
script:
  - "# ps auwx|grep webapp_launcher.js"
  - "make test"
  - "cd tests/behave"
  - "# ps auwx|grep webapp_launcher.js"
  - "# curl -v http://localhost:8080"
  - "# curl -v http://localhost:8080/disease/DOID:3044.json"
  - "TARGET=http://localhost:8080 behave"

# whitelist
branches:
  only:
    - master
    - production
    - stage

notifications:
  email:
    - <EMAIL>
<commit_msg>debugging travis and node 4.2.2<commit_after>language: javascript

before_install:
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
  - "uname -a"
  - "gcc --version"
  - "lsb_release -a"
  - "rm -r ~/.node-gyp"
  - "npm cache clean -f"
  - "nvm install 4.2.2"
  - "nvm use 4.2.2"
  - "npm version"
  - "npm install -g npm@3.4.0"
  - "npm version"
  - "which npm"

# command to install dependencies
install:
  - "# rm -rf node_modules/"
  - "./install.sh"
  - "sudo pip install selenium"
  - "sudo pip install behave"
  - "sudo pip install jsonpath-rw"

before_script:
  - "export DISPLAY=:99.0"
  - "# ./start-server.sh &"
  - "npm run build"
  - "npm run bstart &"
  - "sleep 25"

after_success:
  - "cat ./webdriver.log"
  - "cat ../../start-server.log"

after_failure:
  - "cat ./webdriver.log"
  - "cat ../../start-server.log"

# command to run tests
script:
  - "# ps auwx|grep webapp_launcher.js"
  - "make test"
  - "cd tests/behave"
  - "# ps auwx|grep webapp_launcher.js"
  - "# curl -v http://localhost:8080"
  - "# curl -v http://localhost:8080/disease/DOID:3044.json"
  - "TARGET=http://localhost:8080 behave"

# whitelist
branches:
  only:
    - master
    - production
    - stage

notifications:
  email:
    - <EMAIL>

{'fraction_non_alphanumeric': 0.17364098552991789, 'fraction_numerical': 0.03637074696910442, 'mean_word_length': 2.4520917678812415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '701401', 'n_tokens_mistral': 1094, 'n_tokens_neox': 997, 'n_words': 231}