Fix tests

* Add virtualenvwrapper script before using its functionalities
* Setup PATH env var to correctly execute install scripts in travis
This commit is contained in:
Riccardo Schirone 2016-09-21 12:25:47 +00:00
parent e57a86abd0
commit 86d567e4da
2 changed files with 4 additions and 1 deletions

View file

@ -2,5 +2,7 @@ language: python
python: 2.7
sudo: required
dist: xenial
env:
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH
install: (sudo apt-get update || true) && bin/manage-tools -s setup
script: bin/manage-tools -s test all
script: manage-tools -s test all

View file

@ -35,6 +35,7 @@ fi
if [[ -z "${VIRTUAL_ENV+x}" || "$VIRTUAL_ENV" != "$VE_DIR" ]]; then
if [[ -n "${VIRTUAL_ENV+x}" ]]; then
source ${VIRTUAL_ENV}/bin/activate
deactivate
fi
source "$VE_DIR/bin/activate"