twolfson / sublime-plugin-tests

Testing framework for Sublime Text plugins
The Unlicense
22 stars 2 forks source link

Create Vagrantfile for enclosed testing #7

Closed twolfson closed 11 years ago

twolfson commented 11 years ago

I have completed all of the legwork for creating a Vagrantfile, just need to take action and write it. The Vagrant file will use

Vagrant.configure("2") do |config|
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
end

The required steps are:

Download and install sublime_text

  1. wget 64bit-sublime-text.tar.bz2
  2. tar xvf 64bit-sublime-text.tar.bz2
  3. ln -s $PWD"/Sublime Text 2/sublime_text" /usr/bin/sublime_text

    Install other dependencies

    • sudo apt-get install xvfb
    • sudo apt-get install libgtk2.0-0

      Run xvfb and tests

  4. Xvfb -screen ... (copy what is in travis-cookbooks)
  5. Test =D

Below is the thinned down git log:

commit 6b2e4b6370a69583c9b03bd52da1836daecdad9a
Date:   Thu Sep 19 22:13:17 2013 -0700

    Seeing if installing x11-xserver-utils will help

commit dd4b1712a8886659e0bcbcabc9bfc47fae2a107d
Date:   Thu Sep 19 22:07:43 2013 -0700

    Using Xvfb and getting RANDR error still =/

commit 512da62a1a86a552a5429cba2a747a5b8cac69df
Date:   Thu Sep 19 22:04:42 2013 -0700

    Matching up error from Travis =D

commit dae0c7e7c1c9bc139a255e4c733a817fc07daf98
Date:   Thu Sep 19 22:02:28 2013 -0700

    Installing libgtk2.0-0 in attempt to fix starting issues

commit dd020957d49c7f31543753ff2947dff6a697c324
Date:   Thu Sep 19 22:02:09 2013 -0700

    Custom ppa for sublime_text failed but working around it

commit 07a0f0985a370c6b1e03b1db24b940a4fb49dc14
Date:   Thu Sep 19 21:28:41 2013 -0700

    Added add-apt-repository via `sudo apt-get install software-proprieties-common` and `sudo apt-get install python-software-properties`

commit 8f3f47c05ae2e04fd18843c9a058c59e827128d7
Date:   Thu Sep 19 21:13:19 2013 -0700

    Initial failing log, not same as Travis =/
    Unable to load libgdk-x11-2.0.so
    [...]
    Unable to init px

commit 220d5c82c881d90a377c279905dbe39b5eea0436
Date:   Thu Sep 19 21:12:59 2013 -0700

    Added 64 bit version and it works -_-

commit 0231b3f8a05a0f343fd35ba8dfb8f01602e0cd1a
Date:   Thu Sep 19 21:09:37 2013 -0700

    Adding Sublime 2.0.2.tar.bz

commit fb3401b0cf5c2fba19a346b616cc300ebfa4a8bc
Date:   Thu Sep 19 21:09:13 2013 -0700

    Starting with precise64 Vagrant
twolfson commented 11 years ago

This would also allow for users to use the encapsulated environment for their own projects.

twolfson commented 11 years ago

Released Sublime Text 3 flavor in 0.2.0. I will open another issue to introduce the Sublime Text 2 flavor.

twolfson commented 11 years ago

Actually, this Vagrantfile was more for internal and not extended for using in other projects. I will correct the new issue appropriately.