<commit_before>language: node_js

node_js:
  - '0.10'

before_install:
  - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
  - sudo apt-get update -qq
  - sudo apt-get install -qq google-chrome-stable

  #- export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

install:
  - cp src/public/config.example.js src/public/config.js
  - npm install
  - npm run webdriver-update
  - npm run build

before_script:
  - npm run webdriver-start 2>&1 > /tmp/webdriver_output.txt &
  - npm start 2>&1 &
  - sleep 5 # give server time to start

script:
  - gulp test
  
after_failure:
  - cat /tmp/webdriver_output.txt<commit_msg>Fixed the order of pipe redirections<commit_after>language: node_js

node_js:
  - '0.10'

before_install:
  - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
  - sudo apt-get update -qq
  - sudo apt-get install -qq google-chrome-stable

  #- export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

install:
  - cp src/public/config.example.js src/public/config.js
  - npm install
  - npm run webdriver-update
  - npm run build

before_script:
  - npm run webdriver-start > /tmp/webdriver_output.txt 2>&1 &
  - npm start 2>&1 &
  - sleep 5 # give server time to start

script:
  - gulp test
  
after_failure:
  - cat /tmp/webdriver_output.txt
{'fraction_non_alphanumeric': 0.1308298001211387, 'fraction_numerical': 0.013325257419745608, 'mean_word_length': 2.806451612903226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '5745073', 'n_tokens_mistral': 654, 'n_tokens_neox': 616, 'n_words': 148}