2014-12-09 16:37:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
git clone --depth=1 git://github.com/powerline/bot-ci tests/bot-ci
|
|
|
|
git clone --depth=1 git://github.com/powerline/deps tests/bot-ci/deps
|
|
|
|
|
|
|
|
. tests/bot-ci/scripts/common/main.sh
|
|
|
|
|
2015-01-01 22:04:43 +01:00
|
|
|
sudo apt-get install -qq libssl1.0.0
|
2014-12-10 06:36:27 +01:00
|
|
|
sudo apt-get install -qq screen zsh tcsh mksh busybox socat realpath
|
|
|
|
|
2014-12-09 16:37:28 +01:00
|
|
|
if test -n "$USE_UCS2_PYTHON" ; then
|
2014-12-10 06:36:27 +01:00
|
|
|
pip install virtualenvwrapper
|
|
|
|
set +e
|
|
|
|
. virtualenvwrapper.sh
|
|
|
|
set -e
|
|
|
|
archive="${PWD:-$(pwd)}/tests/bot-ci/deps/cpython-ucs2/cpython-ucs2-${UCS2_PYTHON_VARIANT}.tar.gz"
|
|
|
|
sudo sh -c "cd /opt && tar xzf $archive"
|
|
|
|
PYTHON="/opt/cpython-ucs2-$UCS2_PYTHON_VARIANT/bin/python$UCS2_PYTHON_VARIANT"
|
|
|
|
export LD_LIBRARY_PATH=/opt/cpython-ucs2-$UCS2_PYTHON_VARIANT/lib
|
|
|
|
set +e
|
|
|
|
mkvirtualenv -p "$PYTHON" cpython-ucs2-$UCS2_PYTHON_VARIANT
|
|
|
|
set -e
|
|
|
|
pip install .
|
|
|
|
pip install --no-deps tests/bot-ci/deps/wheels/ucs2-CPython-${UCS2_PYTHON_VARIANT}*/*.whl
|
|
|
|
else
|
|
|
|
pip install .
|
|
|
|
pip install --no-deps tests/bot-ci/deps/wheels/$PYTHON_SUFFIX/*.whl
|
|
|
|
if test "$PYTHON_IMPLEMENTATION" = "CPython" ; then
|
|
|
|
archive="${PWD:-$(pwd)}/tests/bot-ci/deps/zpython/zsh-${PYTHON_VERSION}.tar.gz"
|
|
|
|
sudo sh -c "cd /opt && tar xzf $archive"
|
|
|
|
fi
|
2013-03-03 17:40:35 +01:00
|
|
|
fi
|
2014-12-09 16:37:28 +01:00
|
|
|
|
2014-01-23 15:33:33 +01:00
|
|
|
# Travis has too outdated fish. It cannot be used for tests.
|
|
|
|
# sudo apt-get install fish
|
2013-05-02 10:59:50 +02:00
|
|
|
true
|