diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3c642dd --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +--- +kind: pipeline +type: docker +name: torrentSearch + +platform: + os: linux + arch: amd64 + +steps: + - name: Install python + image: python:3.8 + commands: + - python setup.py install + - pip install pytest + - pytest + + - name: Upload coverage report + image: python:3.8 + commands: + - python setup.py install + - pip install -r requirements-dev.txt + - coverage run -m pytest + - codecov -t $CODECOV_TOKEN + environment: + CODECOV_TOKEN: + from_secret: CODECOV_TOKEN diff --git a/README.md b/README.md index f794185..8c2af7f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@ # Torrent Search -[![PyVersion](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) -![PyPI](https://img.shields.io/pypi/v/torrentSearch) -[![Build Status](https://travis-ci.org/KevinMidboe/torrent_search.svg?branch=master)](https://travis-ci.org/KevinMidboe/torrent_search) -[![codecov](https://codecov.io/gh/KevinMidboe/torrent_search/branch/master/graph/badge.svg)](https://codecov.io/gh/KevinMidboe/torrent_search) -[![Known Vulnerabilities](https://snyk.io/test/github/kevinmidboe/torrent_search/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/kevinmidboe/torrent_search?targetFile=requirements.txt) -[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) +| Tested version | PyPi package | Drone CI | Travis CI | Code coverage | Known vulnerabilities | License | +|:--------|:------|:------|:------|:------|:------|:------------| +| [![PyVersion](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) | ![PyPI](https://img.shields.io/pypi/v/torrentSearch) | [![Build Status](https://drone.schleppe.cloud/api/badges/KevinMidboe/torrent_search/status.svg)](https://drone.schleppe.cloud/KevinMidboe/torrent_search) | [![Build Status](https://travis-ci.org/KevinMidboe/torrent_search.svg?branch=master)](https://travis-ci.org/KevinMidboe/torrent_search) | [![codecov](https://codecov.io/gh/KevinMidboe/torrent_search/branch/master/graph/badge.svg)](https://codecov.io/gh/KevinMidboe/torrent_search) | [![Known Vulnerabilities](https://snyk.io/test/github/kevinmidboe/torrent_search/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/kevinmidboe/torrent_search?targetFile=requirements.txt) | [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) ## Idea The idea behind this project is to create a modular torrent searcher/indexer in python. Currently we have the option to search for two sites, thepiratebay and with jackett. To add more sites one only needs to create a scraper script for a specific service, and from there create torrent class objects that are returned back to the search script. If the new site needs specific configuration values this can be set in the config.ini file and needs to be imported in the site selector in search.py. diff --git a/requirements-dev.txt b/requirements-dev.txt index f7492ca..296ab08 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,3 +3,4 @@ # dependencies for testing pytest>=3.2.5 codecov>=1.4.0 +coverage==5.5