mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
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:
parent
e57a86abd0
commit
86d567e4da
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue