Feat/drone ci #3

Merged
KevinMidboe merged 9 commits from feat/drone-ci into master 2021-07-03 17:16:33 +00:00
3 changed files with 31 additions and 6 deletions

27
.drone.yml Normal file
View File

@@ -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

View File

@@ -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.

View File

@@ -3,3 +3,4 @@
# dependencies for testing
pytest>=3.2.5
codecov>=1.4.0
coverage==5.5