Skip to content

Instantly share code, notes, and snippets.

@vvavrychuk
Last active August 15, 2016 09:19
Show Gist options
  • Select an option

  • Save vvavrychuk/3e53296daa681414e0cec6da57296027 to your computer and use it in GitHub Desktop.

Select an option

Save vvavrychuk/3e53296daa681414e0cec6da57296027 to your computer and use it in GitHub Desktop.

Revisions

  1. vvavrychuk revised this gist Aug 15, 2016. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -7,10 +7,6 @@ Vagrant.configure("2") do |config|
    apt-get -y install libqt5opengl5-dev libqt5qml-graphicaleffects qtbase5-private-dev \
    qtdeclarative5-controls-plugin qtdeclarative5-dev qtdeclarative5-dialogs-plugin \
    qtdeclarative5-qtquick2-plugin qtdeclarative5-quicklayouts-plugin qtdeclarative5-window-plugin
    apt-get -y install mc gdebi
    cd /tmp && wget -q https://download.sublimetext.com/sublime-text_build-3114_amd64.deb && gdebi -nq sublime-text_build-3114_amd64.deb
    rm -f /tmp/sublime-text_build-3114_amd64.deb
    SHELL

    config.vm.provision "shell", privileged: false, inline: <<-SHELL
  2. vvavrychuk created this gist Aug 15, 2016.
    33 changes: 33 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/xenial64"

    config.vm.provision "shell", inline: <<-SHELL
    apt-get update
    apt-get -y install git golang libonig-dev libonig2 mercurial python3.5 python3.5-dev
    apt-get -y install libqt5opengl5-dev libqt5qml-graphicaleffects qtbase5-private-dev \
    qtdeclarative5-controls-plugin qtdeclarative5-dev qtdeclarative5-dialogs-plugin \
    qtdeclarative5-qtquick2-plugin qtdeclarative5-quicklayouts-plugin qtdeclarative5-window-plugin
    apt-get -y install mc gdebi
    cd /tmp && wget -q https://download.sublimetext.com/sublime-text_build-3114_amd64.deb && gdebi -nq sublime-text_build-3114_amd64.deb
    rm -f /tmp/sublime-text_build-3114_amd64.deb
    SHELL

    config.vm.provision "shell", privileged: false, inline: <<-SHELL
    export GOPATH=~/golang
    go get github.com/limetext/backend
    cd $GOPATH/src/github.com/limetext/backend
    git submodule update --init --recursive
    go test github.com/limetext/backend/...
    go get github.com/limetext/lime-qml/main/...
    cd $GOPATH/src/github.com/limetext/lime-qml
    git submodule update --init --recursive
    cd $GOPATH/src/github.com/limetext/lime-qml/main
    go build
    SHELL

    config.ssh.forward_x11 = true
    end