---
language: bash

install:
  - source "$PWD/lib/versions"
  - rvm use "$RUBY_VERSION" --install --binary
  - nvm install "$NODE_VERSION"
  - git clone https://github.com/sstephenson/bats
  - git clone https://github.com/vinsonchuong/bash-common-parse-options
  - export PATH=$PWD/bin:$PWD/bats/bin:$PWD/bash-common-parse-options/bin:$PATH
script:
  - bats spec

---
language: bash

before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

install:
  - source "$PWD/lib/versions"
  - rvm use "$RUBY_VERSION" --install --binary
  - nvm install "$NODE_VERSION"
  - git clone https://github.com/sstephenson/bats
  - git clone https://github.com/vinsonchuong/bash-common-parse-options
  - export PATH=$PWD/bin:$PWD/bats/bin:$PWD/bash-common-parse-options/bin:$PATH

script:
  - bats spec

Enable xvfb for Selenium tests
Enable xvfb for Selenium tests
