Run setup task from .travis.yml

This commit is contained in:
Bruno Sutic 2015-02-23 00:42:14 +01:00
parent a3dd99085a
commit c5bc35932b
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 9 additions and 9 deletions

3
.gitignore vendored
View File

@ -0,0 +1,3 @@
run_tests
tests/run_tests_in_isolation
tests/helpers/helpers.sh

View File

@ -1,13 +1,14 @@
# generic packages # generic packages and latest Tmux 1.9a
before_install: before_install:
- sudo apt-get update - sudo apt-get update
- sudo apt-get install -y git-core expect - sudo apt-get install -y git-core expect
- sudo apt-get install -y python-software-properties software-properties-common - sudo apt-get install -y python-software-properties software-properties-common
# install latest Tmux 1.9a
install:
- sudo add-apt-repository -y ppa:pi-rho/dev - sudo add-apt-repository -y ppa:pi-rho/dev
- sudo apt-get update - sudo apt-get update
- sudo apt-get install -y tmux=1.9a-1~ppa1~p - sudo apt-get install -y tmux=1.9a-1~ppa1~p
install:
- git fetch --unshallow --recurse-submodules || git fetch --recurse-submodules
- lib/tmux-test/setup
script: ./tests/run_tests_in_isolation script: ./tests/run_tests_in_isolation

View File

@ -1,11 +1,7 @@
install_tmux_resurrect_helper() { install_tmux_resurrect_helper() {
local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/" local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/"
rm -rf "$plugin_path" rm -rf "$plugin_path"
if [ -n "$TRAVIS" ]; then git clone --recursive "${CURRENT_DIR}/../" "$plugin_path" >/dev/null 2>&1
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 # we want "fixed" dimensions no matter the size of real display