travis: Separate requirement files

This way we can update pip independently before installing the rest, and
avoid installing codecov (and thus coverage which attempts to build C
extension) where it's not needed.
This commit is contained in:
Florian Bruhin 2016-05-12 11:07:17 +02:00
parent d4e2b4ebb4
commit e70d6d49d9
4 changed files with 13 additions and 5 deletions

View File

@ -0,0 +1,3 @@
codecov==2.0.3
coverage==4.0.3
requests==2.10.0

View File

@ -1,3 +1 @@
pip==8.1.1 # rq.filter: != 8.1.2
codecov==2.0.3
tox==2.3.1

View File

@ -0,0 +1,4 @@
pluggy==0.3.1
py==1.4.31
tox==2.3.1
virtualenv==15.0.1

View File

@ -54,7 +54,7 @@ brew_install() {
pip_install() {
# this uses python2
travis_retry sudo -H python -m pip install -r scripts/dev/ci/requirements-travis.txt
travis_retry sudo -H python -m pip install -r scripts/dev/ci/requirements-$1.txt
}
npm_install() {
@ -84,17 +84,20 @@ elif [[ $TRAVIS_OS_NAME == osx ]]; then
# Disable App Nap
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
brew_install python3 pyqt5
pip_install
pip_install pip
pip_install tox
check_pyqt
exit 0
fi
pyqt_pkgs="python3-pyqt5 python3-pyqt5.qtwebkit"
pip_install
pip_install pip
pip_install tox
case $TESTENV in
py34-cov)
pip_install codecov
apt_install xvfb $pyqt_pkgs libpython3.4-dev
check_pyqt
;;