From bf1376fd8f3e01b982d512a8f6896081ecb183bf Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 23 Apr 2015 21:52:25 +0200 Subject: [PATCH] travis: fix tests - set SHELL=zsh - cd back for ZSH=5 - fix/improve autoenv.plugin.zsh: no dirname, use ${0:h} --- .travis.yml | 3 ++- autoenv.plugin.zsh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 61c98d9..62239d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,9 @@ env: install: - if [ "$ZSH" = 4 ]; then sudo apt-get install zsh; fi - - if [ "$ZSH" = 5 ]; then wget http://downloads.sourceforge.net/project/zsh/zsh/5.0.7/zsh-5.0.7.tar.bz2; tar xf zsh-5.0.7.tar.bz2; cd zsh-5.0.7; ./configure && sudo make && sudo make install; fi + - if [ "$ZSH" = 5 ]; then wget http://downloads.sourceforge.net/project/zsh/zsh/5.0.7/zsh-5.0.7.tar.bz2; tar xf zsh-5.0.7.tar.bz2; cd zsh-5.0.7; ./configure && sudo make && sudo make install; cd ..; fi - pip install cram + - export SHELL=zsh script: - zsh --version - make test diff --git a/autoenv.plugin.zsh b/autoenv.plugin.zsh index b6aca49..3b48f9b 100644 --- a/autoenv.plugin.zsh +++ b/autoenv.plugin.zsh @@ -1 +1 @@ -. $(dirname $0)/autoenv.zsh +. ${0:h}/autoenv.zsh