Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
appveyor coverage fix
* shallow removed
* Appveyor coverage report
* adding covecov-exe to appveyor.yml to force coverage.xml upload
* tox.ini tune-up
  • Loading branch information
moscoquera committed Nov 27, 2017
1 parent 72653f7 commit 6a127eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 3 additions & 6 deletions appveyor.yml
@@ -1,7 +1,5 @@
version: '{branch}-{build}'

shallow_clone: true

environment:

PYU_AWS_ID:
Expand Down Expand Up @@ -70,7 +68,7 @@ install:

# Create .whl packages from dependencies for possible caching.
# First install 'wheel' package to be able create .whl files.
- "build.cmd pip install wheel tox filelock codecov"
- "build.cmd pip install wheel tox filelock codecov coverage"

# Create c:/wheels if it does not exist.
- ps: If ( -not (Test-Path C:/wheels) ) { mkdir C:/wheels }
Expand All @@ -96,7 +94,6 @@ on_finish:

test_script:
# Split tests into several subprocesses.
- choco install codecov
- "build.cmd tox"

after_test:
- "build.cmd codecov"
- codecov -f coverage.xml
12 changes: 9 additions & 3 deletions tox.ini
@@ -1,19 +1,20 @@
[tox]
envlist=py27,py36
toxworkdir=/tmp/tox

[testenv]
setenv = TOX_ENV_NAME={envname}
sitepackages = True
commands = py.test tests --cov=pyupdater
commands = py.test --cov
usedevelop = True

deps =
pytest
pytest-datadir==0.2.0
pytest-cov
pytest-xdist
pytest-remove-stale-bytecode
tox-pyenv
tox-pyenv
coverage
codecov>=1.4.0
filelock
-rrequirements.txt
Expand All @@ -23,6 +24,10 @@ passenv =
PYU_AWS_ID
PYU_AWS_SECRET
TOX_*
TOXENV
CI
TRAVIS
TRAVIS_*

recreate = True

Expand All @@ -33,3 +38,4 @@ addopts =
--cov-config .coveragerc
--cov-report xml
--cov {envsitepackagesdir}/pyupdater
--cov-append

0 comments on commit 6a127eb

Please sign in to comment.