Fix tests for travis

This commit is contained in:
Bruno Sutic
2015-02-22 22:45:06 +01:00
parent 157bd5e38a
commit a3dd99085a
4 changed files with 15 additions and 8 deletions

View File

@ -34,8 +34,7 @@ new_tmux_window
# session yellow
new_tmux_session "yellow"
run_shell_command "mkdir bar"
run_shell_command "cd bar"
run_shell_command "cd /tmp/bar"
start_resurrect_save

View File

@ -1,8 +1,11 @@
install_tmux_resurrect_helper() {
rm -rf ~/.tmux/plugins/tmux-resurrect/
cd "$CURRENT_DIR"
git clone --recursive ../ ~/.tmux/plugins/tmux-resurrect/ >/dev/null 2>&1
cd - >/dev/null
local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/"
rm -rf "$plugin_path"
if [ -n "$TRAVIS" ]; then
git clone --recursive https://github.com/tmux-plugins/tmux-resurrect --branch "$TRAVIS_BRANCH" "$plugin_path" >/dev/null 2>&1
else # used on vagrant
git clone --recursive "${CURRENT_DIR}/../" "$plugin_path" >/dev/null 2>&1
fi
}
# we want "fixed" dimensions no matter the size of real display