2017-12-14 02:19:50 +02:00
|
|
|
language: generic
|
|
|
|
sudo: false
|
2015-04-23 18:38:01 +03:00
|
|
|
env:
|
2017-04-23 23:11:12 +03:00
|
|
|
- TEST_ZSH=5.0.8
|
|
|
|
- TEST_ZSH=4.3.17
|
2015-04-23 20:24:21 +03:00
|
|
|
|
2015-04-23 18:34:59 +03:00
|
|
|
install:
|
2017-04-23 20:44:58 +03:00
|
|
|
- |
|
2017-04-23 23:11:12 +03:00
|
|
|
if [ "$TEST_ZSH" = 4.3.17-travis ]; then
|
2017-04-23 20:44:58 +03:00
|
|
|
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
|
2017-04-23 23:11:12 +03:00
|
|
|
if [ "$TEST_ZSH" = 4.3.17 ]; then
|
|
|
|
curl -SL https://sourceforge.net/projects/zsh/files/zsh-dev/4.3.17/zsh-4.3.17.tar.bz2 | tar --bzip2 -xf -
|
|
|
|
elif [ "$TEST_ZSH" = 5.0.8 ]; then
|
2017-04-23 21:10:00 +03:00
|
|
|
curl -SL https://downloads.sourceforge.net/project/zsh/zsh/$TEST_ZSH/zsh-$TEST_ZSH.tar.bz2 | tar --bzip2 -xf -
|
|
|
|
else
|
|
|
|
curl -SL https://downloads.sourceforge.net/project/zsh/zsh/$TEST_ZSH/zsh-$TEST_ZSH.tar.xz | tar --xz -xf -
|
|
|
|
fi
|
|
|
|
(cd zsh-$TEST_ZSH
|
|
|
|
./configure && sudo make && sudo make install)
|
2017-04-23 20:44:58 +03:00
|
|
|
fi
|
2017-12-14 02:19:50 +02:00
|
|
|
- pip install --user cram
|
2017-04-23 23:34:04 +03:00
|
|
|
- cram --version
|
2015-04-23 22:52:25 +03:00
|
|
|
- export SHELL=zsh
|
2015-04-23 18:34:59 +03:00
|
|
|
script:
|
|
|
|
- zsh --version
|
2017-04-23 15:23:06 +03:00
|
|
|
- which zsh
|
2017-04-23 23:58:24 +03:00
|
|
|
- python -c 'from cram import _main; print(_main._which("zsh"))'
|
2017-04-23 20:50:34 +03:00
|
|
|
- make test_full
|