diff --git a/.travis.yml b/.travis.yml index 6bc36e3..79d802e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,17 @@ +# Specify sudo and dist for Travis-CI environment sudo: required dist: trusty +# Specify Python versions being used and tested language: python python: - "3.5" -# Install dependencies +# Install dependencies to virtual environment install: - - pip3 install -r requirements.txt + - ~/virtualenv/python3.5/bin/pip3 install -r requirements.txt -# Run tests +# Run tests from virtual environment script: - - flake8 --exclude docs/ . -# - pytest --ignore=tests/test_tun.py tests/ - - sudo ~/virtualenv/python3.5/bin/pip3 freeze + - ~/virtualenv/python3.5/bin/flake8 --exclude docs/ . - sudo ~/virtualenv/python3.5/bin/pytest tests/