Install binary dependencies from powerline/deps

This commit is contained in:
ZyX 2014-12-09 18:37:28 +03:00
parent 3fadacae97
commit 104cea9a5c
2 changed files with 25 additions and 31 deletions

View File

@ -1,13 +1,14 @@
language: python language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "pypy"
- "pypy3"
install: tests/install.sh install: tests/install.sh
script: tests/test.sh script: tests/test.sh
matrix:
include:
- python: "2.6"
- python: "2.7"
- python: "3.2"
- python: "3.3"
- python: "3.4"
- python: "pypy"
- python: "pypy3"
# vim: et # vim: et

View File

@ -1,27 +1,20 @@
#!/bin/sh #!/bin/bash
pip install . git clone --depth=1 git://github.com/powerline/bot-ci tests/bot-ci
pip install psutil netifaces git clone --depth=1 git://github.com/powerline/deps tests/bot-ci/deps
if python -c 'import sys; sys.exit(1 * (sys.version_info[0] != 2))' ; then
# Python 2 . tests/bot-ci/scripts/common/main.sh
if python -c 'import platform, sys; sys.exit(1 - (platform.python_implementation() == "CPython"))' ; then
# CPython if test -n "$USE_UCS2_PYTHON" ; then
pip install mercurial for variant in $UCS2_PYTHON_VARIANTS ; do
pip install --allow-external bzr --allow-unverified bzr bzr archive="${PWD:-$(pwd)}/tests/bot-ci/deps/cpython-ucs2/cpython-ucs2-${variant}.tar.gz"
fi sudo sh -c "cd /opt && tar xzvf $archive"
if python -c 'import sys; sys.exit(1 * (sys.version_info[1] >= 7))' ; then done
# Python 2.6
pip install unittest2 argparse
else
# Python 2.7
pip install ipython
fi
else
# Python 3
if python -c 'import sys; sys.exit(1 * (sys.version_info < (3, 3)))' ; then
# Python 3.3+
pip install ipython
fi
fi fi
pip install .
pip install --no-deps tests/bot-ci/deps/wheels/$PYTHON_SUFFIX/*.whl
sudo apt-get install -qq screen zsh tcsh mksh busybox socat sudo apt-get install -qq screen zsh tcsh mksh busybox socat
# Travis has too outdated fish. It cannot be used for tests. # Travis has too outdated fish. It cannot be used for tests.
# sudo apt-get install fish # sudo apt-get install fish