mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-15 02:35:12 +02:00
Travis: test more Zsh versions
This commit is contained in:
29
.travis.yml
29
.travis.yml
@@ -1,19 +1,26 @@
|
|||||||
language: generic
|
language: generic
|
||||||
sudo: false
|
sudo: false
|
||||||
env:
|
env:
|
||||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR
|
- ZSH=4.3.17
|
||||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.clobber
|
- ZSH=5.0.8
|
||||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.invalid-module_path
|
- ZSH=5.1.1
|
||||||
- ZSH=4 ZDOTDIR=tests/ZDOTDIR.loadviafunction
|
- ZSH=5.2
|
||||||
|
- ZSH=5.3.1
|
||||||
- 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
|
|
||||||
|
|
||||||
install:
|
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
|
- pip install --user cram
|
||||||
- export SHELL=zsh
|
- export SHELL=zsh
|
||||||
script:
|
script:
|
||||||
|
|||||||
13
Makefile
13
Makefile
@@ -14,14 +14,11 @@ itest:
|
|||||||
|
|
||||||
# Run tests with all ZDOTDIRs.
|
# Run tests with all ZDOTDIRs.
|
||||||
test_full:
|
test_full:
|
||||||
for zsh in zsh /opt/zsh-4.3.9/bin/zsh; do \
|
ret=0; \
|
||||||
command -v $$zsh || { echo "Skipping non-existing shell: $$zsh"; continue; }; \
|
for i in $(wildcard tests/ZDOTDIR*); do \
|
||||||
ret=0; \
|
echo "zsh=$zsh ZDOTDIR=$$i"; \
|
||||||
for i in $(wildcard tests/ZDOTDIR*); do \
|
SHELL=$$zsh ZDOTDIR=${CURDIR}/$$i cram --shell=$$zsh -v tests || ret=$$?; \
|
||||||
echo "zsh=$zsh ZDOTDIR=$$i"; \
|
echo; \
|
||||||
SHELL=$$zsh ZDOTDIR=${CURDIR}/$$i cram --shell=$$zsh -v tests || ret=$$?; \
|
|
||||||
echo; \
|
|
||||||
done; \
|
|
||||||
done; \
|
done; \
|
||||||
exit $$ret
|
exit $$ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user