language: python
python:
  - "2.7"

install:
  # Install Sublime Text 2
  # http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2
  - sudo add-apt-repository ppa:webupd8team/sublime-text-2 -y
  - sudo apt-get update
  - sudo apt-get install sublime-text -y
  - sudo ln -s /usr/bin/subl /usr/bin/sublime_text
  # TODO: Use vagrant to try to reproduce Travis CI env (see if there is documentation on closest thing)
  # TODO: On vagrant (and eventually Travis), try to use apt-get xvfb + extension to run sublime_text

  # List Sublime Text info for debugging
  - sublime_text --version

  # Install `sublime_plugin_tests`
  - python setup.py install

# before_script:
  # # Generate a screen buffer to collect Sublime Text window
  # - export DISPLAY=:99.0
  # - sh -e /etc/init.d/xvfb start

script:
  # Run our tests
  - ./test.sh

notifications:
  email: false

language: python
python:
  - "2.7"

install:
  # Install Sublime Text 2
  # http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2
  - sudo add-apt-repository ppa:webupd8team/sublime-text-2 -y
  - sudo apt-get update
  - sudo apt-get install sublime-text -y
  - sudo ln -s /usr/bin/subl /usr/bin/sublime_text
  # TODO: Use vagrant to try to reproduce Travis CI env (see if there is documentation on closest thing)
  # TODO: On vagrant (and eventually Travis), try to use apt-get xvfb + extension to run sublime_text

  # List Sublime Text info for debugging
  - sublime_text --version

  # Install `sublime_plugin_tests`
  - python setup.py install

before_script:
  # Generate a screen buffer to collect Sublime Text window
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  # Run our tests
  - ./test.sh

notifications:
  email: false

Revert "Trying tests without xvfb"
Revert "Trying tests without xvfb"

This reverts commit 4f40840fccc8c6470be5b10a9317d0385ffd9c48.

Turns out we need xvfb =P
