Diff
1diff --git a/.travis.yml b/.travis.yml
2new file mode 100644
3index 0000000000000000000000000000000000000000..b57d9a3063b1e9c80b9f6299de9ef959d061ebff
4--- /dev/null
5+++ b/.travis.yml
6@@ -0,0 +1,36 @@
7+dist: trusty
8+sudo: required
9+
10+language: generic
11+
12+env:
13+ - ZSH_VERSION=5.3.1 URL=https://downloads.sourceforge.net/project/zsh/zsh/5.3.1/zsh-5.3.1.tar.xz
14+ - ZSH_VERSION=5.2 URL=https://downloads.sourceforge.net/project/zsh/zsh/5.2/zsh-5.2.tar.xz
15+ - ZSH_VERSION=5.1.1 URL=https://downloads.sourceforge.net/project/zsh/zsh/5.1.1/zsh-5.1.1.tar.xz
16+ - ZSH_VERSION=5.0.8 URL=https://downloads.sourceforge.net/project/zsh/zsh/5.0.8/zsh-5.0.8.tar.gz
17+
18+addons:
19+ apt:
20+ packages:
21+ - build-essential
22+
23+before_install:
24+ - export LOCAL="$(mktemp --directory --tmpdir=${TMPDIR:/tmp} local.bin.XXXXXX)"
25+ - wget $URL
26+ - tar -xf zsh-$ZSH_VERSION.tar.*
27+ - cd zsh-$ZSH_VERSION
28+ - ./configure --prefix=$LOCAL
29+ - make
30+ - make install
31+ - cd -
32+ - export PATH="$LOCAL/bin:$PATH"
33+
34+before_script:
35+ - mkdir ~/bin
36+ - curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > ~/bin/revolver
37+ - curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > ~/bin/color
38+ - curl -L https://github.com/molovo/zunit/releases/download/v0.8.0/zunit > ~/bin/zunit
39+ - chmod u+x ~/bin/{revolver,color,zunit}
40+
41+script:
42+ - zunit
43diff --git a/README.md b/README.md
44index f33d22a5472c36198dfb3312146d363e8ca4858b..9c904fae281cc5e641d8ef02ba653a8e38faaa95 100644
45--- a/README.md
46+++ b/README.md
47@@ -1,6 +1,8 @@
48 Autoswitch Python Virtualenv
49 ============================
50
51+
52+
53 *zsh-autoswitch-virtualenv* is a simple ZSH plugin that switches python virtualenvs automatically as
54 you move between directories.
55
56diff --git a/tests/test_check_venv_path.zunit b/tests/test_check_venv_path.zunit
57index 0b951e495de51720f93e902dc2c6439d8c7d7d7f..e8bf5e98bd8608d8f76602120df143a8b8067436 100644
58--- a/tests/test_check_venv_path.zunit
59+++ b/tests/test_check_venv_path.zunit
60@@ -14,7 +14,7 @@
61 assert '_check_venv' in $precmd_functions
62 }
63
64-@test '_check_venv_path with bad path works' {
65+@test '_check_venv_path with non-existent path' {
66 run _check_venv_path '/i/dont/exist'
67
68 assert "$output" is_empty