diff options
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | appveyor.yml | 4 | ||||
-rw-r--r-- | dev/ci.py | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 83f8792..d77bb9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -93,7 +93,11 @@ install: fi fi else - pip install flake8 coverage; + if [ "$PYTHON_VERSION" == "3.2" ]; then + pip install flake8; + else + pip install flake8 coverage; + fi export PYTHON_BIN=python; fi script: diff --git a/appveyor.yml b/appveyor.yml index c292dca..aad688d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,9 +59,9 @@ install: if (!(Test-Path "${env:PYTMP}\get-pip.py")) { (New-Object Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', "${env:PYTMP}\get-pip.py"); } - & "${env:PYTHON}\python.exe" "${env:PYTMP}\get-pip.py"; + & "${env:PYTHON}\python.exe" -W ignore "${env:PYTMP}\get-pip.py"; # Skip flake8 for 2.6 since flake8 and pycodestyle have deprecated support for it - & "${env:PYTHON}\Scripts\pip.exe" --disable-pip-version-check --quiet install coverage; + & "${env:PYTHON}\python.exe" -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'coverage'])"; } else { & "${env:PYTHON}\Scripts\pip.exe" --disable-pip-version-check --quiet install flake8 coverage; @@ -27,7 +27,8 @@ def run(): sys.stdout.flush() tests_result = run_tests() - print('\nRunning coverage.py') - run_coverage(write_xml=True) + if sys.version_info < (3, 0) or sys.version_info >= (3, 3): + print('\nRunning coverage.py') + run_coverage(write_xml=True) return lint_result and tests_result |