From eff089ef0da94e626eddf65b2800acec8a00a21f Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Sat, 5 Nov 2016 13:16:14 -0700 Subject: [PATCH] try wercker --- .coveragerc | 6 +++--- README.md | 2 +- circle.yml | 15 --------------- wercker.yml | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 circle.yml create mode 100644 wercker.yml diff --git a/.coveragerc b/.coveragerc index 9ad62d0..45df0cd 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True +source = ./pirate [report] -include = /home/ubuntu/pirate-get/* -omit = */tests/*,*__init__* +omit = */tests/*,*__init__*,.git/* [html] -directory = /home/ubuntu/pirate-get/htmlcov/ +directory = ./htmlcov/ diff --git a/README.md b/README.md index e850522..c7c7ba1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # pirate-get -[![Circle CI](https://img.shields.io/circleci/project/vikstrous/pirate-get/master.svg)](https://circleci.com/gh/vikstrous/pirate-get/tree/master) [![Coverage Status](https://img.shields.io/coveralls/vikstrous/pirate-get/master.svg)](https://coveralls.io/github/vikstrous/pirate-get?branch=master) [![Code Climate](https://img.shields.io/codeclimate/github/vikstrous/pirate-get.svg)](https://codeclimate.com/github/vikstrous/pirate-get) [![Codacy Badge](https://api.codacy.com/project/badge/8e5fc16afd23496dbcf74db710d1ef2c)](https://www.codacy.com/app/me_29/pirate-get) [![Gemnasium](https://img.shields.io/gemnasium/vikstrous/pirate-get.svg)](https://gemnasium.com/vikstrous/pirate-get) [![License](https://img.shields.io/pypi/l/pirate-get.svg)](https://raw.githubusercontent.com/vikstrous/pirate-get/master/LICENSE) [![Version](https://img.shields.io/pypi/v/pirate-get.svg)](https://pypi.python.org/pypi/pirate-get/) [![Downloads](https://img.shields.io/pypi/dm/pirate-get.svg)](https://pypi.python.org/pypi/pirate-get/) +[![wercker status](https://app.wercker.com/status/332647fe4b213a791ad9016bfa5f2bee/s/master "wercker status")](https://app.wercker.com/project/byKey/332647fe4b213a791ad9016bfa5f2bee) [![Coverage Status](https://img.shields.io/coveralls/vikstrous/pirate-get/master.svg)](https://coveralls.io/github/vikstrous/pirate-get?branch=master) [![Code Climate](https://img.shields.io/codeclimate/github/vikstrous/pirate-get.svg)](https://codeclimate.com/github/vikstrous/pirate-get) [![Codacy Badge](https://api.codacy.com/project/badge/8e5fc16afd23496dbcf74db710d1ef2c)](https://www.codacy.com/app/me_29/pirate-get) [![Gemnasium](https://img.shields.io/gemnasium/vikstrous/pirate-get.svg)](https://gemnasium.com/vikstrous/pirate-get) [![License](https://img.shields.io/pypi/l/pirate-get.svg)](https://raw.githubusercontent.com/vikstrous/pirate-get/master/LICENSE) [![Version](https://img.shields.io/pypi/v/pirate-get.svg)](https://pypi.python.org/pypi/pirate-get/) [![Downloads](https://img.shields.io/pypi/dm/pirate-get.svg)](https://pypi.python.org/pypi/pirate-get/) pirate-get is a convenient command line tool (inspired by APT) to speed up your trip to the Pirate Bay and get your completely legal torrents more quickly. diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 64559fb..0000000 --- a/circle.yml +++ /dev/null @@ -1,15 +0,0 @@ -machine: - python: - version: 3.4.2 -dependencies: - override: - - pip install -r requirements-test.txt - - python setup.py install -test: - override: - - coverage run -m unittest discover - post: - - mkdir -p $CIRCLE_ARTIFACTS/coverage - - cd /home/ubuntu/pirate-get && coverage html - - cp -R /home/ubuntu/pirate-get/htmlcov/* $CIRCLE_ARTIFACTS/coverage - - coveralls diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..bd8a5dc --- /dev/null +++ b/wercker.yml @@ -0,0 +1,21 @@ +box: python:3.4-slim +build: + steps: + - install-packages: + packages: git + - script: + name: dependencies + code: | + pip install -r requirements-test.txt + python setup.py install + echo "python version $(python --version) running" + echo "pip version $(pip --version) running" + - script: + name: run tests + code: | + coverage run -m unittest discover + - script: + name: coverage report + code: | + coverage html + coveralls