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 &
  - npm start 2>&1 &
  - sleep 5 # give server time to start

script:
  - gulp test

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

Send the webdriver logs to a file rather than STDOUT
Send the webdriver logs to a file rather than STDOUT

This keeps the Travis output clean instead of having all WebDriver logs in the middle. The WebDriver logs are displayed on failure.