From a36b10be39adec89757ad50fed5255e08a5ac534 Mon Sep 17 00:00:00 2001 From: kb1lqc Date: Sat, 27 Jan 2018 14:29:05 -0800 Subject: [PATCH] Updated travis.yml with direct virtual environment links * Running code from virtual environment specifically * Cleaned up unused code * Added comments --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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/