Skip to content

Commit

Permalink
retry codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfk committed Aug 22, 2016
1 parent ac10574 commit 8d54231
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

8 changes: 7 additions & 1 deletion tests/test_cookiecutter_generation.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-

from __future__ import print_function
import os
import re
import sh
import time
import shutil
import fileinput

import pytest
from binaryornot.check import is_binary
Expand Down Expand Up @@ -69,7 +70,12 @@ def run_docker_dev_test(path, coverage=False):
sh.docker_compose(
"--file", "{}/dev.yml".format(path), "run", "django", "coverage", "run", "manage.py", "test"
)
sh.docker_compose(
"--file", "{}/dev.yml".format(path), "run", "django", "coverage", "xml", "-o", "coverage.xml"
)
shutil.copyfile(os.path.join(str(path), ".coverage"), os.path.join(PROJECT_DIR, ".coverage"))
shutil.copyfile(os.path.join(str(path), "coverage.xml"),
os.path.join(PROJECT_DIR, "coverage.xml"))
else:
sh.docker_compose(
"--file", "{}/dev.yml".format(path), "run", "django", "python", "manage.py", "test"
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ commands =
pwd
ls -la
cat .coverage
cat coverage.xml

0 comments on commit 8d54231

Please sign in to comment.