Skip to content

Commit

Permalink
Start using tmux 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Sutic committed Aug 4, 2015
1 parent e1b299b commit 1da4b13
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
@@ -1,11 +1,14 @@
# generic packages and latest Tmux 1.9a
# generic packages and tmux
before_install:
- sudo apt-get update
- sudo apt-get install -y git-core expect
- sudo apt-get install -y python-software-properties software-properties-common
- sudo add-apt-repository -y ppa:pi-rho/dev
- sudo apt-get update
- sudo apt-get install -y tmux=1.9a-1~ppa1~p
- sudo apt-get install -y libevent-dev libncurses-dev
- git clone https://github.com/tmux/tmux.git
- cd tmux
- git checkout 2.0
- sh autogen.sh
- ./configure && make && sudo make install

install:
- git fetch --unshallow --recurse-submodules || git fetch --recurse-submodules
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@
- enable running just a single test via `run_tests` cli interface
- add `--keep-running` cli option to continue running vagrant after the tests
are done executing
- start using tmux 2.0 for tests

### v0.2.0, 2015-02-22
- `setup` script gitignores `tests/helpers.sh`
Expand Down
23 changes: 9 additions & 14 deletions vagrant_centos_provisioning.sh
@@ -1,30 +1,25 @@
#!/usr/bin/env bash

# tmux installation instructions from here
# libevent2 installation instructions from here
# https://gist.github.com/rschuman/6168833

sudo su -

yum -y install gcc kernel-devel make ncurses-devel
yum -y install gcc kernel-devel make automake autoconf ncurses-devel
yum -y install git-core expect vim ruby ruby-devel ruby-irb

# download tmux and libevent
mkdir ~/downloads && cd ~/downloads
# install libevent2 from source
curl http://sourceforge.net/projects/levent/files/latest/download?source=files -L -o libevent2.tar.gz -w 'Last URL was: %{url_effective}'
curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'

# compile libevent
cd ~/downloads
tar zxvf libevent2.tar.gz
cd libevent-*-stable
cd ./libevent-*
./configure --prefix=/usr/local
make
make install

# compile tmux
cd ~/downloads
tar zxvf tmux.tar.gz
cd tmux-*
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
make install
git clone https://github.com/tmux/tmux.git ~/tmux_source
cd ~/tmux_source
git checkout 2.0
sh autogen.sh
./configure && make && sudo make install
12 changes: 8 additions & 4 deletions vagrant_ubuntu_provisioning.sh
Expand Up @@ -3,8 +3,12 @@
sudo apt-get update
sudo apt-get install -y git-core expect vim
sudo apt-get install -y python-software-properties software-properties-common
sudo apt-get install -y build-essential libtool autotools-dev autoconf
sudo apt-get install -y pkg-config libevent-dev libncurses-dev

# install latest Tmux 1.9a
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=1.9a-1~ppa1~p
# install tmux 2.0
git clone https://github.com/tmux/tmux.git ~/tmux_source
cd ~/tmux_source
git checkout 2.0
sh autogen.sh
./configure && make && sudo make install

0 comments on commit 1da4b13

Please sign in to comment.