Sources of Telegram bot for cryptopotato chat. https://t.me/devpotato_bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

118 lines
2.2 KiB

---
pipeline:
lint-shell:
image: sevoid/linter:latest
pull: true
commands:
- ./.ci/lint-shell.sh
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-yaml:
image: sevoid/linter:latest
pull: true
commands:
- ./.ci/lint-yaml.sh
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-dockerfile:
image: sevoid/linter:latest
pull: true
commands:
- hadolint --no-fail --config ./.ci/hadolint.yaml Dockerfile
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
lint-python:
image: sevoid/linter:latest
pull: true
commands:
- sudo pip install -q -r ./.ci/pylint_requirements.txt -e .
- ./.ci/lint_python.py
group: lint
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
test-unittest:
image: python:3-alpine
pull: true
commands:
- apk add -q --no-cache build-base openssl openssl-dev libffi libffi-dev sqlite
- pip install -q -r requirements.txt -e .
- python -m unittest discover -s tests -p "test_*.py"
group: test
when:
event:
- push
branch:
exclude:
- master
- release-*
- archive/*
publish-dev:
image: plugins/docker:17
pull: true
secrets:
- docker_username
- docker_password
repo: sevoid/cryptopotato-bot
group: build
tags:
- dev-${DRONE_COMMIT:0:7}
when:
event:
- push
branch:
- dev-*
- feature-*
- feature/*
publish-release:
image: plugins/docker:17
pull: true
secrets:
- docker_username
- docker_password
repo: sevoid/cryptopotato-bot
group: build
tags:
- latest
- ${DRONE_TAG}
when:
branch:
- master
- release-*
event:
- push
- tag
# vim:set syntax=yaml ts=2 sw=2 et: