
.covio.yml : violations: pep8: pep8 . --exclude='*migrations*,*settings*,*components*,*docs*' sloccount: sloccount . py_unittest: command: coverage run manage.py test violations projects tasks services coviolations_web push stderr: true coverage: coverage report pip_review: command: pip-review nofail: true covio .
The task is described in .travis.yml , there is good documentation for its contents. For our project, it will contain: language: python python: - "2.7" services: - mongodb - redis-server before_install: - sudo apt-get update -qq - sudo apt-get install -qq sloccount install: - pip install -r requirements/ci.txt - cp coviolations_web/settings/local_ci.py coviolations_web/settings/local.py - ./manage.py syncdb - ./manage.py migrate script: - covio
;
In drone.io, the task must be described on the project page in the service itself. For coviolations, you will need to tick the MongoDB and Redis databases, set the token in the Environment Variables : COVIO_TOKEN='17c0f6b3-habr-4d9c-not3-token5af9fe' Commands section, describe the task as a simple script: sudo apt-get update -qq sudo apt-get install -qq sloccount pip install -r requirements/ci.txt cp coviolations_web/settings/local_ci.py coviolations_web/settings/local.py ./manage.py syncdb ./manage.py migrate covio
;| travis-ci | drone-io | |
|---|---|---|
| Pull request support | Yes | Not |
| Deployable | Not | Yes |
| Affixing the status of commits | Yes | Not |
| Saving artifacts | Not | Yes |
| Api for third-party services | Yes | Not |
| Price | $ 129 + per month | $ 25 + per month |
Source: https://habr.com/ru/post/204900/
All Articles