mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-02-20 00:34:43 +02:00
Travis: test more Zsh versions
This commit is contained in:
parent
6c5b6a9b85
commit
3101cc90c7
29
.travis.yml
29
.travis.yml
@ -1,19 +1,26 @@
|
||||
language: generic
|
||||
sudo: false
|
||||
env:
|
||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR
|
||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.clobber
|
||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.invalid-module_path
|
||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.loadviafunction
|
||||
|
||||
- ZSH=5 ZDOTDIR=tests/ZDOTDIR
|
||||
- ZSH=5 ZDOTDIR=tests/ZDOTDIR.clobber
|
||||
- ZSH=5 ZDOTDIR=tests/ZDOTDIR.invalid-module_path
|
||||
- ZSH=5 ZDOTDIR=tests/ZDOTDIR.loadviafunction
|
||||
- ZSH=4.3.17
|
||||
- ZSH=5.0.8
|
||||
- ZSH=5.1.1
|
||||
- ZSH=5.2
|
||||
- ZSH=5.3.1
|
||||
|
||||
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; cd ..; fi
|
||||
- |
|
||||
if [ "$ZSH" = 4.3.17 ]; then
|
||||
sudo apt-get install zsh
|
||||
if [ "$(zsh --version)" != "zsh 4.3.17 (x86_64-unknown-linux-gnu)" ]; then
|
||||
echo "Unexpected Zsh version: $(zsh --version)"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
(wget http://downloads.sourceforge.net/project/zsh/zsh/$ZSH/zsh-$ZSH.tar.bz2
|
||||
tar xf zsh-$ZSH.tar.bz2
|
||||
cd zsh-$ZSH
|
||||
./configure && sudo make && sudo make install)
|
||||
fi
|
||||
- pip install --user cram
|
||||
- export SHELL=zsh
|
||||
script:
|
||||
|
13
Makefile
13
Makefile
@ -14,14 +14,11 @@ itest:
|
||||
|
||||
# Run tests with all ZDOTDIRs.
|
||||
test_full:
|
||||
for zsh in zsh /opt/zsh-4.3.9/bin/zsh; do \
|
||||
command -v $$zsh || { echo "Skipping non-existing shell: $$zsh"; continue; }; \
|
||||
ret=0; \
|
||||
for i in $(wildcard tests/ZDOTDIR*); do \
|
||||
echo "zsh=$zsh ZDOTDIR=$$i"; \
|
||||
SHELL=$$zsh ZDOTDIR=${CURDIR}/$$i cram --shell=$$zsh -v tests || ret=$$?; \
|
||||
echo; \
|
||||
done; \
|
||||
ret=0; \
|
||||
for i in $(wildcard tests/ZDOTDIR*); do \
|
||||
echo "zsh=$zsh ZDOTDIR=$$i"; \
|
||||
SHELL=$$zsh ZDOTDIR=${CURDIR}/$$i cram --shell=$$zsh -v tests || ret=$$?; \
|
||||
echo; \
|
||||
done; \
|
||||
exit $$ret
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user