.travis.sh: activate virtualenv before calling python or pip commands

This commit is contained in:
Cosimo Lupo 2016-08-10 18:05:38 +01:00
parent 014f651114
commit a5bf2c0bdd

View File

@ -36,6 +36,7 @@ case "$1" in
ctest -V
;;
"python")
source venv/bin/activate
python setup.py build_ext test
;;
esac
@ -43,6 +44,7 @@ case "$1" in
"after_success")
case "${BUILD_SYSTEM}" in
"python")
source venv/bin/activate
pip wheel -w dist .
;;
esac